! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
CLI to set brightness
Status:
RESOLVED: FIXED
Severity:
enhancement
Product:
Xfce4-power-manager
Component:
General

Comments

Description peggy.kutyla 2012-05-24 15:02:11 CEST
Hi,

I wonder if you could add some CLI to adjust brightness.
My function keys aren't recognize at all but brightness management  with the panel plugin works perfectly.

I would like to create my own keyboard shortcut and xfpm-power-backlight-helper --set-brightness X does not seem to do what I want.

(Well I don't even know where to begin a power management script.  Dbus  is a bit difficult to get the hang of it.)
Comment 1 Simon Steinbeiss editbugs 2014-08-17 02:27:12 CEST
I guess the main problem will be that you need root rights to run xfpm-power-backlight-helper.

We have merged the brightness plugin into a more general power-manager panel plugin. While this isn't a CLI for adjusting the brightness, it offers a very convenient way to change it for those whose shortcuts don't work for one reason or another.
Comment 2 Eric Koegel editbugs 2014-08-17 12:52:53 CEST
If you're creating a script you'll probably want to call the xfpm-power-backlight-helper with pkexec for --set-brightness i.e.

pkexec /usr/sbin/xfpm-power-backlight-helper --set-brightness 937

This was you can use the polkit authorization rules to run it as root, the same as xfpm does.
Comment 3 Eric Koegel editbugs 2014-08-17 14:35:42 CEST
Marking as resolved. If you have more questions, let us know!

Bug #8938

Reported by:
peggy.kutyla
Reported on: 2012-05-24
Last modified on: 2014-08-17

People

Assignee:
Ali Abdallah
CC List:
2 users

Version

Attachments

Additional information