-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu Server 22.04 power led keeps blue after halt #128
Comments
Hi again. Any help regarding automatic flipping of led to red after |
Nobody can help? Thanks. |
I'm also having this issue, on my Pi 4 / 4GB, under Ubuntu 22.04; pressing the power button on my DeskPi Pro does not trigger a safe shutdown. I've had a look at your various installation scripts, and I'm trying to make sense of the patterns used. In the Also, following your installation script patterns, in the Could you please help us understand if we should be focusing on manually compiling (and copying into place) the binaries rendered from |
Hi there, |
It is the same source code ,but compiled in both 32bit and 64bit system . |
Hello, the same issue still exists as of May 14, 2023. It is a fresh install of Ubuntu 22.04, 64 bit. Soft shutdown does not work and the power button stays blue after shutting down via the on-screen menu. Thanks for addressing this bug. |
I've been doing a little investigating, seeing where the requisite files are located for the safe shutdown service. The necessary files seem to be: (which get installed by setup) probably missing: The deskpi-safeshut.service file, found in 4 locations above, looks like: [Unit] I wonder if the problem is in this line of code: ExecStart=/usr/bin/sudo /usr/bin/fanStop I can see how it calls fanstop, but it doesn’t call safecutoffpower64. The parallel line of code in deskpi.service is: ExecStart=sudo /usr/bin/pwmFanControl64 I do not know where the safecutoffpower64 should be called in this line of code, whether before or after fanStop. Can anyone on here shed some light on how and when safeCutoffPower64 should be called inside of deskpi-safeshut.service? |
Partial Solution: I checked in /usr/bin and safecutoffpower64 was not there. I then copied safecutoffpower64 from ~/deskpi/drivers/c/ to /usr/bin/ I then edited /lib/systemd/system/deskpi-safeshut.service to run the safecutoffpower64 function after fanStop: [Unit] Make sure the ExecStart line is edited in these 4 locations: sudo shutdown now The light should turn red a few seconds after shutdown. After booting back up, I tried using the button (short press) to initiate a safe shutdown and still nothing happens. I am not sure how to get the button to initiate the shutdown process. The function /usr/bin/poweroff could be called somehow, but I am not sure how to assign that to pressing the button. However the light behind the button acts like it should now, and the power does not have to be cut manually after shutdown anymore. Hope this helps someone! |
While looking at the drivers for an earlier version of DeskPi (Lite, V1), I noticed that there is a function for turning the Pi off when the power button is pressed twice. There does not seem to be such a file included in the DeskPi Pro (V2) drivers. The earlier driver's code can be found here: https://github.com/DeskPi-Team/deskpi_v1/blob/main/drivers/python/safe_shutdown.py It listens for a ‘poweroff’ signal from the MCU (button), and returns a power off signal to /dev/ttyUSB0 to run the safe shutdown service if it gets the message. I have not tried to run that old driver in my DeskPi Pro. I don’t know if the button will send the ‘poweroff’ (no underscore) signal properly, nor do I know if the shutdown script might need to be modified: the power off signal sent to /dev/ttyUSB0 in the old driver is the all lowercase 'power_off', but in the new DeskPi Pro drivers it is 'Power_Off'. I don’t know if the change to upper case letters matters. It then shuts down the system using the command sudo init 0, which closes all programs before shutting down cleanly. Anyone want to create an updated driver from the old code? Chances are it should go in /usr/bin/ like the others. |
are you at least able to run the fans, I'm having an issue with both the power button staying blue and fans not running |
A PR has been merged that should have fixed the blue led staying on. Latest master should include the fix. |
it does not, I tried it on Ubuntu server/desktop 22.04, and raspberry pi OS all 64 bit, and on shutdown the blue LED stays on I was able to get the fans to work on raspberry pi OS, but nothing else works. I am going to be RMA'ing it, I am disappointed by the state of these setup scripts |
I am working on it, it will comming soon. |
It seems like your system did not send |
I have installed Ubuntu Server 22.04 and I also installed drivers for Deskpi Pro. I think fan is working, and secondary USBs are also working.
However, when I shutdown the rpi4, all services turn off but the blue led keeps been lit and it does not turn red. Before Ubuntu I was using Raspbian and it was working fine. Any idea why this happens? Thank you.
The text was updated successfully, but these errors were encountered: