Did an quick and dirty experiment and edited the source file myself and built the upower package and preliminary results are promising.
The gnome power manager now reacts after a while, i think the poll rate is 30s, when i unplug the AC power. Will run this for a while to see that it is not just a coincidence.
I commented out the whole line, it is perhaps not the grandest solution but it seems to work. I have not found any function to call to see if the computer has AC power so i cannot implement that.
Did an quick and dirty experiment and edited the source file myself and built the upower package and preliminary results are promising.
The gnome power manager now reacts after a while, i think the poll rate is 30s, when i unplug the AC power. Will run this for a while to see that it is not just a coincidence.
This is the line i edited.
diff src/linux/ up-device- supply. c src/linux/ up-device- supply. c~ >priv-> enable_ poll = (state != UP_DEVICE_ STATE_FULLY_ CHARGED) ; */ >priv-> enable_ poll = (state != UP_DEVICE_ STATE_FULLY_ CHARGED) ;
549c549
< /* supply-
---
> supply-
I commented out the whole line, it is perhaps not the grandest solution but it seems to work. I have not found any function to call to see if the computer has AC power so i cannot implement that.