Mint 17.2 MATE screen brightness fix for Asus Zenbook UX305

Write tutorials for Linux Mint here
More tutorials on https://github.com/orgs/linuxmint/discu ... /tutorials and (archive) on https://community.linuxmint.com/tutorial
Forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post read forum rules
Post Reply
kataclysm

Mint 17.2 MATE screen brightness fix for Asus Zenbook UX305

Post by kataclysm »

I just got my Asus Zenbook UX305 today and installed Linux Mint 17.2 MATE on it right away. The screen brightness was not controllable by the keys designated for it (function F5 and F6), and indeed I couldn't find a way to adjust it through software, either. Here is how I got the brightness be tied to keys. It involves editing one line in the grub file and downloading one third-party program.

In the terminal, type

Code: Select all

cd /etc/default
There you'll see a file called simply "grub" ...

Edit this with root permissions. What I did was type into the terminal

Code: Select all

sudo nano grub
to open this in a text editor.

Look for the line GRUB_CMDLINE_LINUX=""

Inside those quotes, type

Code: Select all

video.use_native_backlight=1
Save and exit.

Back in the terminal, type

Code: Select all

sudo update-grub
Reboot.

Now you have to get a program called xbacklight

In the terminal, type

Code: Select all

sudo apt-get install xbacklight
You should now be able to change the backlight using commands in the terminal. To test this, type

Code: Select all

xbacklight -set 80
to set the backlight to 80% brightness. It should immediately change the brightness of your screen.

You can tie these commands to keyboard shortcuts using the utility called "Keyboard Shortcuts" that is built in to Mint 17.2 MATE.

What you do is press the "Add" button at the bottom of the Keyboard Shortcuts window. Give it a name like "Brightness Up" and then in the command field, type

xbacklight -inc 20%

(I chose 20% arbitrarily; you can do 10% or whatever you want.)

Click "Apply."

Then click the item and press whatever key combo you want to press to change your screen brightness.

Now create another shortcut for Brightness Down with the command

xbacklight -dec 20%

and you're done.

I tied my brightness controls to Shfit-Left and Shift-Right. You could probably even tie them to the original Function-F5 and F6 keys, though I find the arrow keys to be more convenient.

Please let me know if I posted this in the wrong place or did something else offensive/cringeworthy. This is my first week of using Linux and my second day of being on these forums.
jeremy21212121

Re: Mint 17.2 MATE screen brightness fix for Asus Zenbook UX

Post by jeremy21212121 »

The keyboard shortcut utility won't let me use the Fn key to set shortcuts(im using 17.3)... Bummer. Apart from that, this works beautifully.

I tried a variety of other methods with no luck, so thank you very much :) I love my new zenbook. I installed tlp also, which nearly doubled my battery life.
User avatar
overkill22
Level 4
Level 4
Posts: 450
Joined: Fri Jan 16, 2015 6:09 am

Re: Mint 17.2 MATE screen brightness fix for Asus Zenbook UX

Post by overkill22 »

jeremy21212121 wrote:The keyboard shortcut utility won't let me use the Fn key to set shortcuts(im using 17.3)... Bummer. Apart from that, this works beautifully.

I tried a variety of other methods with no luck, so thank you very much :) I love my new zenbook. I installed tlp also, which nearly doubled my battery life.

did you find any difference, performance wise, with tlp? are you using the standard settings?
at the moment I had 7 hours total uptime (5 hours working + 2 hours sleep) of battery using just the browser with 5-10 tabs open.
User avatar
Sgthawker
Level 4
Level 4
Posts: 226
Joined: Sun Apr 27, 2014 2:23 am

Re: Mint 17.2 MATE screen brightness fix for Asus Zenbook UX

Post by Sgthawker »

kataclysm, great idea you have here. I tried this on my Toshiba Satellite U845W, without the keyboard shortcuts, and it works great. :D

I will look into the shortcuts in the future.

Maximum brightness on my laptop was giving me a headache when using it with Linux Mint 17.3, but now it is much more fun to experiment with.
LM21.1 KDE/LM21.1 Cin/ UEFI Tuf Gaming X570 Plus, Ryzen 7 5800X, GTX 3060, Samsung 980 Pro M.2 NVMe
LM21.1 KDE/LM21.1 Cin/ UEFI on STRIX laptop, i7700 HQ, GTX 1060, Samsung 980 Pro M.2 NVMe
User avatar
overkill22
Level 4
Level 4
Posts: 450
Joined: Fri Jan 16, 2015 6:09 am

Re: Mint 17.2 MATE screen brightness fix for Asus Zenbook UX

Post by overkill22 »

Sgthawker wrote:kataclysm, great idea you have here. I tried this on my Toshiba Satellite U845W, without the keyboard shortcuts, and it works great. :D

I will look into the shortcuts in the future.

Maximum brightness on my laptop was giving me a headache when using it with Linux Mint 17.3, but now it is much more fun to experiment with.
what do you mean? I'm having brightness problem too with my asus...
stefanokan

Re: Mint 17.2 MATE screen brightness fix for Asus Zenbook UX

Post by stefanokan »

Thank you very much for your post.
I lost two days trying to fix the brightness issue without success until i found your post.
I have an ASUS X554LA and Linux Mint XFCE 17.3
:D :D :D
User avatar
Sgthawker
Level 4
Level 4
Posts: 226
Joined: Sun Apr 27, 2014 2:23 am

Re: Mint 17.2 MATE screen brightness fix for Asus Zenbook UX

Post by Sgthawker »

overkill22 wrote:what do you mean? I'm having brightness problem too with my asus...
overkill22
Just follow kataclysm's directions above and you can adjust the brightness level of your laptop. It is instructions for an Asus laptop, but they worked fine for my Toshiba!
LM21.1 KDE/LM21.1 Cin/ UEFI Tuf Gaming X570 Plus, Ryzen 7 5800X, GTX 3060, Samsung 980 Pro M.2 NVMe
LM21.1 KDE/LM21.1 Cin/ UEFI on STRIX laptop, i7700 HQ, GTX 1060, Samsung 980 Pro M.2 NVMe
easyrider

Re: Mint 17.2 MATE screen brightness fix for Asus Zenbook UX305

Post by easyrider »

Asus N46JV

sudo nano /etc/default/grub
change line to:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi= "
sudo update-grub
REBOOT

keys should work after login - any other way didn't work

I am just giving back to community :)
User avatar
overkill22
Level 4
Level 4
Posts: 450
Joined: Fri Jan 16, 2015 6:09 am

Re: Mint 17.2 MATE screen brightness fix for Asus Zenbook UX

Post by overkill22 »

jeremy21212121 wrote:The keyboard shortcut utility won't let me use the Fn key to set shortcuts(im using 17.3)... Bummer. Apart from that, this works beautifully.

I tried a variety of other methods with no luck, so thank you very much :) I love my new zenbook. I installed tlp also, which nearly doubled my battery life.
the solution is still working on Mint 18.1, but still the shortcut won't recorgnise Fn key. Is there anyone that was able to tie Fn+f6 and Fn+f5 respectively for brightness up and down?
Post Reply

Return to “Tutorials”