https://bugs.freedesktop.org/show_bug.cgi?id=66963
--- Comment #67 from Alex Deucher agd5f@yahoo.com --- (In reply to comment #65)
For the last test, I have a question here: Should it switch from "balanced" to "battery" automatically when I unplug the power cabble or just stay "balanced"?
There is no automatic switching, you need to select the state you want via sysfs: /sys/class/drm/card0/device/power_dpm_state Since it's a policy decision, I leave it to userspace (some users want to switch to battery state others want to stay in performance/balanced). You can have a script listen for ac plug events and select a different state depending on what you want it to do.