02-28-2023, 03:08 PM
Many thanks, @acid andy Your research and work solved a tough problem.
For Mobian and Manjaro Phosh, I had a difficult time compiling upowerd (I'm generally terrible at compiling), starting with the issue that the compiling programs/libs have different names in Debian and Manjaro. But I finally got to the end and the attached upowerd runs successfully on both my Debian and Manjaro setups.
As acid andy already warns, it is very important to back up your original upowerd. Then, operating on assumption that compiled upowerd is in your home directory, move the file. In Mobian:
For Manjaro, the directory is different:
If the compiled upowerd doesn't work, the fallout is non-fatal: slow boot, no access to Settings, question mark in place of battery percentage. Just delete the compiled upowerd, rename the saved original back to upowerd, and reboot.
Again, hats off to acid andy, and I hope the attached upowerd saves people some hassle, but buyer beware and all that.
For Mobian and Manjaro Phosh, I had a difficult time compiling upowerd (I'm generally terrible at compiling), starting with the issue that the compiling programs/libs have different names in Debian and Manjaro. But I finally got to the end and the attached upowerd runs successfully on both my Debian and Manjaro setups.
As acid andy already warns, it is very important to back up your original upowerd. Then, operating on assumption that compiled upowerd is in your home directory, move the file. In Mobian:
Code:
$ sudo mv /usr/libexec/upowerd /usr/libexec/upowerd.orig
$ sudo cp /home/mobian/upowerd /usr/libexec/
$ sudo chmod +x /usr/libexec/upowerd
For Manjaro, the directory is different:
Code:
$ sudo mv /usr/lib/upowerd /usr/lib/upowerd.orig
$ sudo cp /home/manjaro/upowerd /usr/lib/
$ sudo chmod +x /usr/lib/upowerd
If the compiled upowerd doesn't work, the fallout is non-fatal: slow boot, no access to Settings, question mark in place of battery percentage. Just delete the compiled upowerd, rename the saved original back to upowerd, and reboot.
Again, hats off to acid andy, and I hope the attached upowerd saves people some hassle, but buyer beware and all that.