-
-
Notifications
You must be signed in to change notification settings - Fork 427
Green Cell UPS 2000VA fails to shutdown UPS at FSD #1673
Copy link
Copy link
Closed
Labels
DDLHCLQx protocol driverDriver based on Megatec Q<number> such as new nutdrv_qx, or obsoleted blazer and some othersDriver based on Megatec Q<number> such as new nutdrv_qx, or obsoleted blazer and some othersShutdowns and overrides and battery level triggersIssues and PRs about system shutdown, especially if battery charge/runtime remaining is involvedIssues and PRs about system shutdown, especially if battery charge/runtime remaining is involvedUSB VID=0001 PID=0000 (Fry's Electronics/MEC0003)Seems to be a generic USB chip interfacing many devices and protocols (Qx, USB HID, ATCL...)Seems to be a generic USB chip interfacing many devices and protocols (Qx, USB HID, ATCL...)documentationimpacts-release-2.7.4Issues reported against NUT release 2.7.4 (maybe vanilla or with minor packaging tweaks)Issues reported against NUT release 2.7.4 (maybe vanilla or with minor packaging tweaks)service/daemon start/stopGeneral subject for starting and stopping NUT daemons (drivers, server, monitor); also BG/FG/DebugGeneral subject for starting and stopping NUT daemons (drivers, server, monitor); also BG/FG/Debug
Milestone
Metadata
Metadata
Assignees
Labels
DDLHCLQx protocol driverDriver based on Megatec Q<number> such as new nutdrv_qx, or obsoleted blazer and some othersDriver based on Megatec Q<number> such as new nutdrv_qx, or obsoleted blazer and some othersShutdowns and overrides and battery level triggersIssues and PRs about system shutdown, especially if battery charge/runtime remaining is involvedIssues and PRs about system shutdown, especially if battery charge/runtime remaining is involvedUSB VID=0001 PID=0000 (Fry's Electronics/MEC0003)Seems to be a generic USB chip interfacing many devices and protocols (Qx, USB HID, ATCL...)Seems to be a generic USB chip interfacing many devices and protocols (Qx, USB HID, ATCL...)documentationimpacts-release-2.7.4Issues reported against NUT release 2.7.4 (maybe vanilla or with minor packaging tweaks)Issues reported against NUT release 2.7.4 (maybe vanilla or with minor packaging tweaks)service/daemon start/stopGeneral subject for starting and stopping NUT daemons (drivers, server, monitor); also BG/FG/DebugGeneral subject for starting and stopping NUT daemons (drivers, server, monitor); also BG/FG/Debug
Type
Projects
Status
In Progress
I'm correctly connecting to the UPS using this driver:
root@rpi:~# upsc greencellThe command
upsdrvctl shutdowncorrectly sends the command to the UPSBut it fails to shutdown the UPS, and doesnt set the FSD flag either. After more digging I found out my UPS won't go into shutdown mode because the
shutdown.returnis called too soon after theshutdown.stop./usr/bin/upscmd -u <user> -p <pass> greencell shutdown.stop && sleep "3" && /usr/bin/upscmd -u <user> -p <password> greencell shutdown.returnworks fine while/usr/bin/upscmd -u <user> -p <pass> greencell shutdown.stop && /usr/bin/upscmd -u <user> -p <password> greencell shutdown.return(notice the lack of sleep between the commands) won't put the UPS into FSD and won't shutdown the UPS.I thought I could solve this editing the
/lib/systemd/system-shutdown/nutshutdownscript, replacing/sbin/upsdrvctl shutdownwith my commands. But of course the nut-server service is already stopped when the nutshutdown script is executed resulting in a failureError: Connection failure: Connection refused.Any idea on how to solve this / a workaround?