On Tue, Nov 10, 2020 at 08:22:31PM +1000, Vladimir Yerilov wrote: > It worked! You're a wizard sir, thank you! > :D Excellent! +Greg, Benjamin and the list. > вт, 10 нояб. 2020 г. в 18:31, Heikki Krogerus <heikki.krogerus@xxxxxxxxxxxxxxx>: > > > > Hi Vladimir, > > > > On Tue, Nov 10, 2020 at 03:02:40AM +1000, Vladimir Yerilov wrote: > > > Forwarding to y'all. > > > > > > Just some extra info: > > > `cat /sys/class/power_supply/ucsi-source-psy-USBC000:001/online` shows > > > zero when the cable is unplugged, same for > > > `/sys/class/power_supply/ADP0/online` status, but that means nothing > > > for upower and all system services considering that there a power > > > source available and not setting display brightness and other > > > parameters due to that. > > > Checked in Ubuntu as well, same situation with their kernel 5.8. > > > > Please try to avoid top-posting. > > > > It seems that the ucsi psy does not report any changes. That is one > > obvious bug that I can see. > > > > I'm attaching a patch to fix that. Can you give it a try? thanks, -- heikki