Page 4 of 8

RE: [NC10] Kernel 2.6.31

Posted: 03 Aug 2009, 13:22
by voria
Only now I've noticed your post update.
Well, I'm glad everything is working for you. ;)

RE: [NC10] Kernel 2.6.31

Posted: 11 Aug 2009, 20:45
by voria
Main post updated.

RE: [NC10] Kernel 2.6.31

Posted: 15 Aug 2009, 09:23
by voria
New kernel 2.6.31-6 available (based on 2.6.31-rc6).

RE: [NC10] Kernel 2.6.30* and all the related stuff

Posted: 18 Aug 2009, 02:12
by crocomo
voRia wrote:
slasher-fun wrote: Hi,

Screen Backlight support seems not working with 2.6.30-10. Works fine with -9.
Kernel 2.6.30-10 enables KMS by default, breaking screen backlight support.
You can disable KMS by creating a new .conf file in /etc/modprobe.d/ containing this line:

Code: Select all

options i915 modeset=0
or you can use the kernel 2.6.30-10 from my repository, in which I've disabled KMS by default.
If that's still a problem... for the backlight you can use setpci to directly write the values because xbacklight also broke for me since I started using KMS. So this is rather a dirty workaround...

Code: Select all

# setpci -s 00:02.1 F4.B=xx
Where xx ranges from 00 to ff. (00 being minimum, ff the maximum).

But I'm using Arch Linux, so don't know what the current situtation on Ubuntu is ;)
I also wrote a script to handle this. If anybody wants to have it, I can post it...

Btw, voRia should still know me as I wrote you an E-Mail some long time ago... :D

RE: [NC10] Kernel 2.6.30* and all the related stuff

Posted: 18 Aug 2009, 10:03
by voria
crocomo wrote: If that's still a problem... for the backlight you can use setpci to directly write the values because xbacklight also broke for me since I started using KMS. So this is rather a dirty workaround...

Code: Select all

# setpci -s 00:02.1 F4.B=xx
Where xx ranges from 00 to ff. (00 being minimum, ff the maximum).
Here you can find a kernel module which enables the backlight control when KMS is in use (more info in this bug report).
It enables gnome-power-manager to control the brightness, but xbacklight is broken yet. This led to other problems in my case: for example my script for toggling the screen backlight with Fn-F5 does not work anymore, because it uses xbacklight to do its work.
So, for now I prefer to disable KMS, avoiding all these little problems.
For getting a 1024x600 framebuffer, I continue to use the method described in this howto, by using the 'i915resolution' utility and the 'uvesafb' kernel module.
crocomo wrote: Btw, voRia should still know me as I wrote you an E-Mail some long time ago... :D
I remember you :)
If I'm not wrong your idea was to create a repository/wiki for using ArchLinux on the NC10, right?
If you did it, please give us some links! :D

RE: [NC10] Kernel 2.6.30* and all the related stuff

Posted: 18 Aug 2009, 13:03
by crocomo
voRia wrote: Here you can find a kernel module which enables the backlight control when KMS is in use (more info in this bug report)....
Ok, didn't know about this bug report. Should have searched more ;)
But the solution via setpci on KMS works like a charm for me. So I'll stick with that for now...
voRia wrote: I remember you :)
If I'm not wrong your idea was to create a repository/wiki for using ArchLinux on the NC10, right?
If you did it, please give us some links! :D
Yep! That's me :D
But since everything is working just fine out of the box (as far as the hardware goes) there is no need for having extra packages in AUR... and there already was an wiki entry, which can be found here. Only describes some general stuff, nothing special.

RE: [NC10] Kernel 2.6.30* and all the related stuff

Posted: 18 Aug 2009, 13:36
by crocomo
'voRia' pid='1761' dateline='1250586200' wrote: Here you can find a kernel module which enables the backlight control when KMS is in use (more info in this bug report)....
Ok, didn't know about this bug report. Should have searched more ;)
But the solution via setpci on KMS works like a charm for me. So I'll stick with that for now...
'voRia' pid='1761' dateline='1250586200' wrote: I remember you :)
If I'm not wrong your idea was to create a repository/wiki for using ArchLinux on the NC10, right?
If you did it, please give us some links! :D
Yep! That's me :D
But since everything is working just fine out of the box (as far as the hardware goes) there is no need for having extra packages in AUR... and there also was an wiki entry, which can be found here. Only describes some general stuff...

RE: [NC10] Kernel 2.6.30* and all the related stuff

Posted: 18 Aug 2009, 13:49
by voria
crocomo wrote: But the solution via setpci on KMS works like a charm for me. So I'll stick with that for now...
Can you post your script? Maybe I can merge it with my current scripts in order to have different ways to control backlight?
crocomo wrote: Yep! That's me :D
But since everything is working just fine out of the box (as far as the hardware goes) there is no need for having extra packages in AUR... and there also was an wiki entry, which can be found here. Only describes some general stuff...
Good to know that everything works out of the box with Arch. :)

RE: [NC10] Kernel 2.6.31

Posted: 18 Aug 2009, 14:12
by crocomo
voRia wrote: Can you post your script? Maybe I can merge it with my current scripts in order to have different ways to control backlight?
Sure. No problem.

Code: Select all

#!/bin/sh


# adjust backlight via setpci and dpms via vbetool


# Check if root called this script
USER=`whoami`
if [ $USER != "root" ]; then
	echo "Need to be root to run this script."
	exit 1
fi

# Get old value
OLD=$[16#`setpci -s 00:02.1 F4.B`]

case "$1" in
	inc)
        # Check if value given
		if [ -z "$2" ]; then
			echo "Usage: $0 $1 <value>"
			exit 1
		fi

		# Take second argument as value to increment
		NEW=$[$OLD+$2]

		# Set new value
		$0 set $NEW
	;;

	dec)
        # Check if value given
		if [ -z "$2" ]; then
			echo "Usage: $0 $1 <value>"
			exit 1
		fi
		
		# Take second argument as value to decrement
		NEW=$[$OLD-$2]

		# Set new value
		$0 set $NEW
	;;

	set)
		# Check if value given
		if [ -z "$2" ]; then
			echo "Usage: $0 $1 <value>"
			exit 1
		fi
		
		# Take second argument as value to set
		NEW=$2

		# Check if value less than 0
		if [ "$NEW" -lt "0" ]; then
			NEW=0
		fi

		# Check if value greater than 255
		if [ "$NEW" -gt "255" ]; then
			NEW=255
		fi
	
		# Set new value
		setpci -s 00:02.1 F4.B=`echo "obase=16; ibase=10; $NEW" | bc`
	;;

	toggle)
		# Path to logfile
		LOG=/tmp/backlight.log

		# Check if logfile does not exist
	        if [ ! -f $LOG ]; then
			vbetool dpms off
			touch $LOG
		else
			vbetool dpms on
			rm -rf $LOG
		fi
	;;

	*)
		echo "Usage: $0 (inc <value>|dec <value>|set <value>|toggle)"
		exit 1
	;;
esac

exit 0

RE: [NC10] Kernel 2.6.31

Posted: 25 Aug 2009, 08:33
by voria
Kernel updated to version 2.6.31-7 (based on vanilla 2.6.31-rc7).

RE: [NC10] Kernel 2.6.31

Posted: 25 Aug 2009, 09:50
by voria
It seems there are problems when shutting down the pc with the latest kernel (2.6.31-7).
I suggest to stick with the 2.6.31-6 while waiting for a fix.

RE: [NC10] Kernel 2.6.31

Posted: 25 Aug 2009, 19:17
by voria
I've removed the broken kernel 2.6.31-7, and updated the 2.6.31-6 to the latest available for karmic.

RE: [NC10] Kernel 2.6.31

Posted: 28 Aug 2009, 17:33
by voria
Kernel updated to version 2.6.31-8.

RE: [NC10] Kernel 2.6.31

Posted: 05 Sep 2009, 18:52
by voria
Kernel updated to version 2.6.31-9 (based on vanilla 2.6.31-rc8).

RE: [NC10] Kernel 2.6.31

Posted: 08 Sep 2009, 18:57
by voria
Kernel updated to version 2.6.31-10 (based on vanilla 2.6.31-rc9).