Linux Lite Forums

Hardware - Support => Video Cards => Topic started by: Chris_OC on December 02, 2014, 08:32:05 PM

Title: [SOLVED] Brightness issue -- ASUS 1001p
Post by: Chris_OC on December 02, 2014, 08:32:05 PM
Hey all! I'm new here and new to Linux, and I'm trying to overcome a problem with screen brightness that seems to be common with the ASUS 1001p netbook. I hope I'm in the right section of the forum; there's no separate video card, of course, but I don't see any other area where this would belong. If it needs to be moved, please do so.

I loaded Linux Lite 2.2 32-bit today, and while it's clear, even with my limited experience, that this PC is better suited to Linux Lite, the screen won't go as bright as it did with Windows.

I updated the BIOS to the most recent version available from ASUS, but that made no difference.

I searched the web and found references to this problem with other versions of Linux revolving around editing the line GRUB_CMDLINE_LINUX_DEFAULT. I found two different edits, written as follows:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux acpi_backlight=vendor"

...and I tried both (separately, of course) but neither made any difference. Linux Lite tells me that brightness is at maximum, and changing it doesn't make the screen dimmer.

This is far from the biggest problem I could have, but it'd be nice to be able to fix it if a fix exists with Linux Lite.

If it helps, the hardware specs are as follows:

Atom N450 CPU
2 gb RAM
Crucial M4 128 gb SSD
Intel GMA 3150 video, screen resolution 1024x600

The RAM and SSD are my upgrades to the original equipment.

Thanks in advance for any help that anyone can offer.
Title: Re: Brightness issue -- ASUS 1001p
Post by: rokytnji on December 03, 2014, 09:52:51 AM
I use redshift and xfce4-brightness-plugin on my Dell XT2 and Dell E4500 to control brightness on my screens.

http://antix.freeforums.org/redshift-not-working-t4479.html (http://antix.freeforums.org/redshift-not-working-t4479.html)

redshift-gtk is super simple to enable in XFCE Linux-Lite for me.

The xfce4-brightness-plugin can be added to your taskbar.

As always. Your mileage may vary from mine due to un-forseen  circumstances beyond my control here on the Mexican border.
 8)
 
I used to be a mod at eeepc forums till it went down. I sold my 701SD and 900 after that for a sweet deal on some better spec stuff like this

Code: [Select]
$ inxi -Fxz
System:    Host: harry-Latitude-XT2 Kernel: 3.17.0-linuxlite i686 (32 bit gcc: 4.8.2)
           Desktop: Xfce 4.11.6 (Gtk 2.24.23) Distro: Ubuntu 14.04 trusty
Machine:   System: Dell (portable) product: Latitude XT2
           Mobo: Dell model: 0HJ48R Bios: Dell v: A01 date: 05/07/2009
CPU:       Dual core Intel Core2 Duo U9600 (-MCP-) cache: 3072 KB
           flags: (lm nx pae sse sse2 sse3 sse4_1 ssse3 vmx) bmips: 6379
           Clock Speeds: 1: 1200 MHz 2: 1200 MHz
Graphics:  Card: Intel Mobile 4 Series Integrated Graphics Controller
           bus-ID: 00:02.0
           Display Server: X.Org 1.15.1 drivers: intel (unloaded: fbdev,vesa)
           Resolution: [email protected]
           GLX Renderer: Mesa DRI Mobile Intel GM45 Express x86/MMX/SSE2
           GLX Version: 2.1 Mesa 10.1.3 Direct Rendering: Yes
Audio:     Card Intel 82801I (ICH9 Family) HD Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k3.17.0-linuxlite
Network:   Card-1: Intel 82567LM Gigabit Network Connection
           driver: e1000e v: 2.3.2-k port: efe0 bus-ID: 00:19.0
           IF: eth0 state: down mac: <filter>
           Card-2: Intel WiFi Link 5100
           driver: iwlwifi v: in-tree: bus-ID: 0c:00.0
           IF: wlan0 state: up mac: <filter>
Drives:    HDD Total Size: 180.0GB (17.8% used)
           ID-1: /dev/sda model: D2CSTK181M11 size: 180.0GB
Partition: ID-1: / size: 8.6G used: 4.6G (57%) fs: ext4 dev: /dev/sda1
           ID-2: /home size: 157G used: 26G (18%) fs: ext4 dev: /dev/sda2
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 54.5C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 168 Uptime: 26 min Memory: 552.3/5016.9MB
           Init: Upstart runlevel: 2 Gcc sys: 4.8.2
           Client: Shell (bash 4.3.111) inxi: 2.2.1

My edit is just to show what you can post as far as giving info on your machine.
There is a hardware info txt report you can generate and upload to the forum
so members can look at specifics on your Asus netbook.

https://www.linuxliteos.com/forums/index.php?topic=1237.0;topicseen (https://www.linuxliteos.com/forums/index.php?topic=1237.0;topicseen)

The above was added to your install. I see that "inxi" was also added in version 2.2 also.
So you have the best of both worlds when reporting what you are running,
Title: Re: Brightness issue -- ASUS 1001p
Post by: Chris_OC on December 03, 2014, 11:51:21 AM
Thanks for your reply. I haven't attempted the plug-in yet and will give it a shot soon.

On the report, I'm frustrated. If I understand you correctly, to generate a report like the one you posted above, I need to copy the script from your link on this forum (below your example) and paste it into the terminal screen. When I do this, it asks for my password but only gives me about a second to answer. I've tried it several times and still can't beat the clock, even with a short password and good typing skills. What am I missing?

Title: Re: Brightness issue -- ASUS 1001p
Post by: rokytnji on December 03, 2014, 12:04:11 PM
Quote
On the report, I'm frustrated. If I understand you correctly, to generate a report like the one you posted above, I need to copy the script from your link on this forum (below your example) and paste it into the terminal screen.

Just type in

Code: [Select]
inxi -Fxz
Into terminal. Then post back here inbetween code tags the readout. Copy and paste between code tags. The # sign on advanced reply task bar is the code tag symbol.

This forum layout is kind of FUBAR for quote and code tags thoughl. I do not know how to explain it in depth . Plus I do not have a dog in this hunt. Anyhows. The txt report I hinted at is generated by a script wrote by misko and that text can be uploaded to the forum using "Attatchments and other options" which is under the advanced reply box.  It looks like this

(http://thumbnails112.imagebam.com/36879/9a3b61368789684.jpg) (http://www.imagebam.com/image/9a3b61368789684)

Just hit the generate report button and upload the report.txt file to the forum like so





[attachment deleted by admin, more than 25 days old]
Title: Re: Brightness issue -- ASUS 1001p
Post by: Chris_OC on December 03, 2014, 12:27:01 PM
Thanks -- that's easier than I thought (most of Linux is still Greek to me). Here's the report:

Code: [Select]
$ inxi -Fxz
System:    Host: cp-1001P Kernel: 3.13.0-24-generic i686 (32 bit, gcc: 4.8.2)
           Desktop: Xfce 4.11.6 (Gtk 2.24.23) Distro: Ubuntu 14.04 trusty
Machine:   System: ASUSTeK product: 1001P version: x.x
           Mobo: ASUSTeK model: 1005P version: x.xx Bios: American Megatrends version: 1202 date: 06/23/2010
CPU:       Single core Intel Atom CPU N450 (-HT-) cache: 512 KB flags: (lm nx pae sse sse2 sse3 ssse3) bmips: 3332.7
           Clock Speeds: 1: 1000.00 MHz 2: 1333.00 MHz
Graphics:  Card: Intel Atom Processor D4xx/D5xx/N4xx/N5xx Integrated Graphics Controller bus-ID: 00:02.0
           X.Org: 1.15.1 drivers: intel (unloaded: fbdev,vesa) Resolution: [email protected]
           GLX Renderer: Mesa DRI Intel IGD x86/MMX/SSE2 GLX Version: 1.4 Mesa 10.1.3 Direct Rendering: Yes
Audio:     Card: Intel NM10/ICH7 Family High Definition Audio Controller driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture ver: k3.13.0-24-generic
Network:   Card-1: Qualcomm Atheros AR8132 Fast Ethernet driver: atl1c ver: 1.0.1.1-NAPI port: ec00 bus-ID: 01:00.0
           IF: eth0 state: down mac: <filter>
           Card-2: Qualcomm Atheros AR2427 802.11bg Wireless Network Adapter (PCI-Express) driver: ath9k bus-ID: 02:00.0
           IF: wlan0 state: up mac: <filter>
Drives:    HDD Total Size: 128.0GB (33.8% used) 1: id: /dev/sda model: M4 size: 128.0GB
Partition: ID: / size: 116G used: 41G (37%) fs: ext4 ID: swap-1 size: 2.14GB used: 0.00GB (0%) fs: swap
RAID:      No RAID devices detected - /proc/mdstat and md_mod kernel raid module present
Sensors:   System Temperatures: cpu: 55.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 165 Uptime: 51 min Memory: 372.4/2006.6MB Runlevel: 2 Gcc sys: 4.8.2
           Client: Shell (bash 4.3.11) inxi: 1.9.17
Title: Re: Brightness issue -- ASUS 1001p
Post by: Chris_OC on December 03, 2014, 12:29:26 PM
BTW -- I found a screen brightness plug-in for the panel, but it doesn't do anything. It comes up by default set to max, and lowering the setting doesn't make the screen dimmer.
Title: Re: Brightness issue -- ASUS 1001p
Post by: rokytnji on December 03, 2014, 12:39:34 PM
Everything looks OK and Cool to me. Your graphics report is spot on using the intel driver.

Are you trying your Asus Hot Keys to adjust brightness?

Something I guess you can check compared to mine. This is kinda hard for me because I do not dance with Windows except
for tuning motorcycles. So I do not know what you mean by how Windows screen is brighter than Linux-Lite.

Code: [Select]
harry@harry-Latitude-XT2:~$ for interface in /sys/class/backlight/*; do echo -e "\n $interface"; cat $interface/{brightness,max_brightness,actual_brightness}; done

 /sys/class/backlight/acpi_video0
15
15
15

 /sys/class/backlight/intel_backlight
39780
39780
39780

The post I am reading trying to understand your situation is located at.

http://ubuntuforums.org/showthread.php?t=2214983&p=12981340#post12981340 (http://ubuntuforums.org/showthread.php?t=2214983&p=12981340#post12981340)
Title: Re: Brightness issue -- ASUS 1001p
Post by: rokytnji on December 03, 2014, 12:40:43 PM
BTW -- I found a screen brightness plug-in for the panel, but it doesn't do anything. It comes up by default set to max, and lowering the setting doesn't make the screen dimmer.

That sux because my screen dims when the slider goes down.
Title: Re: Brightness issue -- ASUS 1001p
Post by: Chris_OC on December 03, 2014, 01:25:25 PM
Are you trying your Asus Hot Keys to adjust brightness?
Yep, and it has the same effect as the plug-in, which is to say, none.

Quote
So I do not know what you mean by how Windows screen is brighter than Linux-Lite.
I don't have any stats, but I got a brighter image on the same PC with Windows 7, without even going to the max brightness setting. It's most noticeable indoors with pictures and videos, and outdoors with any apps.

I'm looking at the ubuntu thread you linked to, and I'm still trying to make sense of it. I'm hopeful that coding will sink in soon.
Title: Re: Brightness issue -- ASUS 1001p
Post by: rokytnji on December 03, 2014, 02:18:47 PM
I have to leave. So leaving you with

http://www.ubuntu.com/certification/make/Asus/ (http://www.ubuntu.com/certification/make/Asus/)

https://wiki.ubuntu.com/HardwareSupport/Machines/Netbooks (https://wiki.ubuntu.com/HardwareSupport/Machines/Netbooks)

https://help.ubuntu.com/community/EeePC/Fixes (https://help.ubuntu.com/community/EeePC/Fixes)

HTH.  8)
Ediit: I kinda see what you mean now.
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/512567
 
Title: Re: Brightness issue -- ASUS 1001p
Post by: rokytnji on December 03, 2014, 05:30:04 PM
For infos sake since I really do not know what to say next in this thread.
The location for backlight info in linux-lite is in

(http://thumbnails112.imagebam.com/36887/6295ea368865481.jpg) (http://www.imagebam.com/image/6295ea368865481)

I am lost because Chris_OC tried the recommended grub kernel argument parameters to get his brightness working
but said

Quote

I searched the web and found references to this problem with other versions of Linux revolving around editing the line GRUB_CMDLINE_LINUX_DEFAULT. I found two different edits, written as follows:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux acpi_backlight=vendor"

...and I tried both (separately, of course) but neither made any difference. Linux Lite tells me that brightness is at maximum, and changing it doesn't make the screen dimmer.

Sorry Chris. I am out of ideas on this one.
Title: Re: Brightness issue -- ASUS 1001p
Post by: Chris_OC on December 03, 2014, 05:59:02 PM
Thanks anyway -- I appreciate your looking into it.

Just FYI, I took a look at the three "brightness" files there (actual, max, and just plain brightness) and they all read 125. This might explain why I don't get any changes with the brightness plug-in, but I don't know how to edit them, or if that's even possible. I found that I can't make changes from the File Manager; I can edit them, but they won't save from there.
Title: Re: Brightness issue -- ASUS 1001p
Post by: rokytnji on December 03, 2014, 06:13:54 PM
Yeah, something is not right

try

Code: [Select]
sudo echo 1000 > /sys/class/backlight/intel_backlight/brightness
Just to see if things get brighter or dimmer.

Mine is at

Code: [Select]
harry@harry-Latitude-XT2:~$ cd /sys/class/backlight/intel_backlight/
harry@harry-Latitude-XT2:/sys/class/backlight/intel_backlight$ ls
actual_brightness  bl_power  brightness  device  max_brightness  power  subsystem  type  uevent
harry@harry-Latitude-XT2:/sys/class/backlight/intel_backlight$ cat max_brightness
39780
harry@harry-Latitude-XT2:/sys/class/backlight/intel_backlight$ cat actual_brightness
39780
harry@harry-Latitude-XT2:/sys/class/backlight/intel_backlight$

whose values are way higher than yours.
Title: Re: Brightness issue -- ASUS 1001p
Post by: rokytnji on December 03, 2014, 06:22:21 PM
Here is hoping I am on to something

Code: [Select]
harry@harry-Latitude-XT2:~$ cat /var/log/Xorg.0.log | grep backlight
[    24.159] (--) intel(0): found backlight control interface acpi_video0 (type 'firmware')

You might be missing acpi_video0 maybe?

In case you are wondering where I am getting my flaky ideas.

http://rog.asus.com/forum/showthread.php?41681-G75VW-Fn-Keys-Not-Working-For-Screen-Brightness-In-Linux (http://rog.asus.com/forum/showthread.php?41681-G75VW-Fn-Keys-Not-Working-For-Screen-Brightness-In-Linux)

http://www.linlap.com/linlap.com?do=search&id=asus+1000
Title: Re: Brightness issue -- ASUS 1001p
Post by: Chris_OC on December 03, 2014, 07:59:06 PM
Yeah, something is not right

try

Code: [Select]
sudo echo 1000 > /sys/class/backlight/intel_backlight/brightness
Just to see if things get brighter or dimmer.

I get "permission denied" -- how do I bypass that?
Title: Re: Brightness issue -- ASUS 1001p
Post by: rokytnji on December 03, 2014, 08:04:44 PM
Try it as root then

Code: [Select]
sudo -s
login. You should get a # prompt. Instead of $. Then

Code: [Select]
echo 1000 > /sys/class/backlight/intel_backlight/brightness
without the sudo.
Title: Re: Brightness issue -- ASUS 1001p
Post by: Chris_OC on December 03, 2014, 08:08:20 PM
You might be missing acpi_video0 maybe?

I have this: /sys/class/backlight/acpi_video0$ -- the system adds the $ sign.

And your ideas are not flaky, at least that I can tell. I know next to nothing about this stuff, so I'm in no position to judge, at any rate.

EDIT: I got permission, but now the command

Code: [Select]
echo 1000 > /sys/class/backlight/intel_backlight/brightness
gives me an write error for invalid argument.
Title: Re: Brightness issue -- ASUS 1001p
Post by: rokytnji on December 03, 2014, 08:16:50 PM
The 1000 number was a wild guess on my part with the low number you gave earlier so that is why probably the invalid argument kicked in.
Title: Re: Brightness issue -- ASUS 1001p
Post by: Chris_OC on December 03, 2014, 08:20:26 PM
What does that number refer to? I tried lower numbers just for the heck of it, and that didn't seem to make any difference.
Title: Re: Brightness issue -- ASUS 1001p
Post by: rokytnji on December 03, 2014, 08:23:14 PM
The number refers to what I gather from below

http://askubuntu.com/questions/149054/how-to-change-lcd-brightness-from-command-line-or-via-script

Title: Re: Brightness issue -- ASUS 1001p
Post by: rokytnji on December 03, 2014, 08:27:42 PM
Just to fill you in. I am just a tattooed scooter tramp that has no education and owns a few computers in my motorcycle shop.

So I am no coder. Just self taught is all.

You might get lucky with the below maybe?

http://itsfoss.com/fix-brightness-ubuntu-1310/
Title: Re: Brightness issue -- ASUS 1001p
Post by: Chris_OC on December 03, 2014, 08:37:35 PM
No worries -- I appreciate your help.

And my head is spinning right now, so I'm gonna have to leave this alone for a while. Thanks again, and I'll let you know if I turn up anything.
Title: Re: Brightness issue -- ASUS 1001p
Post by: Chris_OC on December 03, 2014, 08:52:26 PM
You might get lucky with the below maybe?

http://itsfoss.com/fix-brightness-ubuntu-1310/

Hey, that worked! I don't know if the screen is brighter at max, but the brightness control actually works now, thru the fn keys and the brightness plug-in. It'll even bring the screen down to full darkness. If I can make the screen a little brighter, that would be nice, but this is an excellent start. Thanks for helping!
Title: Re: Brightness issue -- ASUS 1001p
Post by: Wirezfree on December 03, 2014, 09:34:44 PM
Hi,

It seems you have it working, so you may not want to break it...

Not sure if this helps..??
Look at post#25 page 3 through to post #32 page 4
http://ubuntuforums.org/showthread.php?t=1566277&page=3 (http://ubuntuforums.org/showthread.php?t=1566277&page=3)

Dave
Title: Re: Brightness issue -- ASUS 1001p
Post by: Chris_OC on December 04, 2014, 12:34:53 PM
Dave, thank you for the reference! The script:

Code: [Select]
sudo setpci -s 00:02.0 f4.b=ff
brightened the screen by two full steps via fn+f5. As noted, that script alone goes away on reboot, but adding it to /etc/rc.local before exit 0 makes it permanent. It was clear on reboot with brightness at max, when the screen ticked up two notches on the login screen. I don't know if it's possible to make the screen brighter still, but it's plenty bright for me.

To sum up:

With Intel graphics, if the brightness controls don't work:

http://itsfoss.com/fix-brightness-ubuntu-1310/

Scroll down to "Fix brightness control issue..."

-------------------

To increase brightness:

Look at post#25 page 3 through to post #32 page 4
http://ubuntuforums.org/showthread.php?t=1566277&page=3 (http://ubuntuforums.org/showthread.php?t=1566277&page=3)

-------------------

Both of these answers can be considered Best Answer but it seems I can only choose one, and they were equally helpful. My thanks to both rokytnji and Wirezfree (Dave), as well as the authors of the items they linked to, for their help!
Title: Re: Brightness issue -- ASUS 1001p
Post by: Wirezfree on December 04, 2014, 01:03:10 PM
Hi Chris_OC,

I suppose there is one last thing you could try, if you have removed it.?
Now you have it at a certain level, try adding back the:
Code: [Select]
acpi_backlight=vendorback in the grub line.

Dave
Title: Re: Brightness issue -- ASUS 1001p
Post by: Chris_OC on December 04, 2014, 05:18:03 PM
Hi Chris_OC,

I suppose there is one last thing you could try, if you have removed it.?
Now you have it at a certain level, try adding back the:
Code: [Select]
acpi_backlight=vendorback in the grub line.

Dave

I hadn't removed it (I looked to be sure) so it's cool, but thanks for the thought.