Ok. The new patch works perfectly for me when setting the idle/active brightness! Nice work there!
I'm still having problems with the battery/ac though. But it I don't know that it is a problem with YOUR patch--perhaps gpm in general or ACPI. I had this problem with the Ubuntu's version of gpm in Hardy (though not in Gutsy). The problem is that when I unplug the power supply the brightness doesn't change, i.e. it doesn't dim at all. The icon in the system tray changes, though when I put my mouse over it is says: Computer is running on AC power. Laptop battery 1 hour 35 minutes remaining (78%) When the power supply is plugged in it says: Computer is running on AC power. Laptop batter charging (78%) So, although it says that it is on AC power in both cases, the second line tells you which is which, when on battery it give the estimated time remaining. When on AC it says the battery is charging. So it's just the first line that gets confused. This problem is probably not exactly related to this particular bug. But I wanted to give you the full account of what I'm experiencing on my machine. The bottom line is that your patch seems to fix this particular bug. When my screen dims brightness is restored to 100% again. Before this was not the case. So good work! I've also attached a log file that details the dimming/un-dimming cycles and several AC/Battery switches in case you are curious. ** Attachment added: "gpm-log" http://launchpadlibrarian.net/15518072/gpm-log -- g-p-m does not honor its configuration for LCD brightness levels after multiple unplug-replug from AC https://bugs.launchpad.net/bugs/215484 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs