Score:1

xbacklight : after I execute it, nothing happens and no output is displayed

co flag

I want to manipulate my screen brightness using cli. And the most popular solution I found so far is xbacklight. But unfortunately it doesn't work.

I tried executing xbacklight -dec 50 but to no avail. I even executed the same command with sudo but again there was no output and nothing changed.

After looking up online, I found that you can manipulate /sys/class/backlight/intel_backlight/brightness file. So I did the same and sudo edited the file and changed the default value from 201 to 101 and, it works. Brightness decreases. But I want it to work from CLI.

I use Ubuntu 20.04 LTS and Nvidia GPU (performance mode) Please help!

Thank you.

uz flag
Jos
Do you run on X? Or Wayland?
deepanshu avatar
co flag
@Jos I run on X
Score:2
co flag

Actually I got it working by using light package and adding myself to video group.

sudo gpasswd -a <user> video
light -A 5

Make sure to restart your computer after running gpasswd command. ref- reddit post, light package

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.