fedora 34 Silverblue on a lenovo ThinkPad X1 Carbon, which resides on a desktop-stand, tilted by ~30 degrees: I would like to permanently switch to the ‘performance’ power profile while the ThinkPad is on the desktop-stand in a tilted position. But it switches back to ‘balanced’ after a while.
But when I check the current profile after a while (minutes), it has switched back to ‘balanced’.
I suspect, that the ‘lap-detected’ inhibitor might be accidentally triggered (by some acceleration sensors?) by having the ThinkPad in a tilted position on the desktop-stand: if I put it flat on the desktop surface, the ‘inhibited yes (lap-detected)’ changes to ‘no’ after a while (minutes). If I then put it back to the tilted position on the desktop-stand, the ‘inhibited’ immediately changes back to ‘yes (lap-detected)’ and the power profile switches back from ‘performance’ to ‘balanced’.
Any idea how I can avoid the accidential lap-detection and ‘inhibited yes (lap-detected)’ while the ThinkPad is on the desktop-stand in a tilted position?
Thanks for this advise. I opened a bug: Bug 2014261
(Btw. this is my 1st bug reported to fedora bugzilla. If you could have a look at it and advise on how to improve my bug report, that would be very welcome!)
I am not able to access that bug, but in my experience the issue isn’t really to do with gnome settings or power profiles daemon.
Whether your device is considered to be on your lap is decided by the device’s firmware from Lenovo. Sometimes it can be a bit finicky in my experience. This bug can only really be solved properly by them, gnome settings just follows what the firmware ultimately decides.
I have the same problem on my X1 carbon g7. But the output of powerprofilesctl says Degraded instead of Inhibited, and it never goes back to not lap-detected.
Edit : after a night on my desk and a reboot, it switched back to Degraded : no
I have rebased my silverblue to fedora 35 and now the ‘performance’ profile stays enabled (it does not switch back to ‘balanced’) when the ThinkPad is resting in a tilted position, although the ‘lap detected’ is still indicated in the Gnome power settings: ‘Lap detected: performance mode temporarily unavailable. Move the device to a stable surface to restore.’
I think there is a delay that can be added to the response of that sensors change of state, but I am unfamiliar with how to change anything with PPD since I ripped it out and replaced it with tuned, now my desktop doesn’t think it’s a laptop.
Interestingly on my x1 Gen 9 carbon, after several restarts entered directly into laptop detected mode I dual booted into Windows, manually updated the balanced setting straight into power, booted back into Fedora and laptop had returned to Performance settings again. So Windows may have a force override option.