[NC10] Kernel 2.6.31

Discussions about Linux installation and configuration on Samsung laptops
User avatar
voRia
Administrator
Administrator
Posts: 1378
Joined: 12/02/2009, 18:08
Location: Italy
Contact:

RE: [NC10] Kernel 2.6.31

Postby voRia » 03/08/2009, 13:22

Only now I've noticed your post update.
Well, I'm glad everything is working for you. ;)
Image
Please consider a little donation to keep the 'Linux On My Samsung' project up and running. Thank you!

User avatar
voRia
Administrator
Administrator
Posts: 1378
Joined: 12/02/2009, 18:08
Location: Italy
Contact:

RE: [NC10] Kernel 2.6.31

Postby voRia » 11/08/2009, 20:45

Main post updated.
Image
Please consider a little donation to keep the 'Linux On My Samsung' project up and running. Thank you!

User avatar
voRia
Administrator
Administrator
Posts: 1378
Joined: 12/02/2009, 18:08
Location: Italy
Contact:

RE: [NC10] Kernel 2.6.31

Postby voRia » 15/08/2009, 9:23

New kernel 2.6.31-6 available (based on 2.6.31-rc6).
Image
Please consider a little donation to keep the 'Linux On My Samsung' project up and running. Thank you!

crocomo
Newbie
Newbie
Posts: 7
Joined: 18/08/2009, 2:02

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

Postby crocomo » 18/08/2009, 2:12

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
Last edited by crocomo on 18/08/2009, 2:17, edited 1 time in total.

User avatar
voRia
Administrator
Administrator
Posts: 1378
Joined: 12/02/2009, 18:08
Location: Italy
Contact:

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

Postby voRia » 18/08/2009, 10:03

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
Last edited by voRia on 18/08/2009, 10:20, edited 1 time in total.
Image
Please consider a little donation to keep the 'Linux On My Samsung' project up and running. Thank you!

crocomo
Newbie
Newbie
Posts: 7
Joined: 18/08/2009, 2:02

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

Postby crocomo » 18/08/2009, 13:03

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.

crocomo
Newbie
Newbie
Posts: 7
Joined: 18/08/2009, 2:02

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

Postby crocomo » 18/08/2009, 13:36

'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...

User avatar
voRia
Administrator
Administrator
Posts: 1378
Joined: 12/02/2009, 18:08
Location: Italy
Contact:

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

Postby voRia » 18/08/2009, 13:49

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. :)
Image
Please consider a little donation to keep the 'Linux On My Samsung' project up and running. Thank you!

crocomo
Newbie
Newbie
Posts: 7
Joined: 18/08/2009, 2:02

RE: [NC10] Kernel 2.6.31

Postby crocomo » 18/08/2009, 14:12

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

User avatar
voRia
Administrator
Administrator
Posts: 1378
Joined: 12/02/2009, 18:08
Location: Italy
Contact:

RE: [NC10] Kernel 2.6.31

Postby voRia » 25/08/2009, 8:33

Kernel updated to version 2.6.31-7 (based on vanilla 2.6.31-rc7).
Image
Please consider a little donation to keep the 'Linux On My Samsung' project up and running. Thank you!

User avatar
voRia
Administrator
Administrator
Posts: 1378
Joined: 12/02/2009, 18:08
Location: Italy
Contact:

RE: [NC10] Kernel 2.6.31

Postby voRia » 25/08/2009, 9:50

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.
Image
Please consider a little donation to keep the 'Linux On My Samsung' project up and running. Thank you!

User avatar
voRia
Administrator
Administrator
Posts: 1378
Joined: 12/02/2009, 18:08
Location: Italy
Contact:

RE: [NC10] Kernel 2.6.31

Postby voRia » 25/08/2009, 19:17

I've removed the broken kernel 2.6.31-7, and updated the 2.6.31-6 to the latest available for karmic.
Image
Please consider a little donation to keep the 'Linux On My Samsung' project up and running. Thank you!

User avatar
voRia
Administrator
Administrator
Posts: 1378
Joined: 12/02/2009, 18:08
Location: Italy
Contact:

RE: [NC10] Kernel 2.6.31

Postby voRia » 28/08/2009, 17:33

Kernel updated to version 2.6.31-8.
Image
Please consider a little donation to keep the 'Linux On My Samsung' project up and running. Thank you!

User avatar
voRia
Administrator
Administrator
Posts: 1378
Joined: 12/02/2009, 18:08
Location: Italy
Contact:

RE: [NC10] Kernel 2.6.31

Postby voRia » 05/09/2009, 18:52

Kernel updated to version 2.6.31-9 (based on vanilla 2.6.31-rc8).
Image
Please consider a little donation to keep the 'Linux On My Samsung' project up and running. Thank you!

User avatar
voRia
Administrator
Administrator
Posts: 1378
Joined: 12/02/2009, 18:08
Location: Italy
Contact:

RE: [NC10] Kernel 2.6.31

Postby voRia » 08/09/2009, 18:57

Kernel updated to version 2.6.31-10 (based on vanilla 2.6.31-rc9).
Image
Please consider a little donation to keep the 'Linux On My Samsung' project up and running. Thank you!


Return to “Linux On My Samsung”

Who is online

Users browsing this forum: Baidu [Spider], Yahoo [Bot] and 1 guest