You are not logged in.

#101 2009-12-21 16:59:31

Svlad Cjelli
Member
From: dusk till dawn
Registered: 2008-10-21
Posts: 99

Re: Archlinux on Samsung n130/n140

Doesn't matter -- it's only relevant if backlight goes off (which it doesn't you say). Then you might be able to turn it on again with setpci or equivalently with the brightness keys (executing the setpci-based script in the wiki).

Is KMS enabled?

Sorry i am simply not able to set up that (both KMS and setpci)...

I even losed to set up xbindkeys (yesterday and today)
I tried to detect my "up"-button and edited my xbindkeysrc, but the only thing that happend was, that i couldn't use my up-key anymore.

infact this hole configuration is to much for me, my linux-knowledge and my freetime.
I hope there is another way to solve the blackout-problem sometime.


Is this specific to the N130/N140 or is it seen also with other computers?

I think i already read from other users having the same problem...



Svlad

Last edited by Svlad Cjelli (2009-12-21 17:02:34)

Offline

#102 2009-12-21 17:46:17

Aedit
Member
Registered: 2009-10-29
Posts: 138

Re: Archlinux on Samsung n130/n140

@fberger: Thanks for the log. So the spurious IRQ is cleared at 3 mins 19 secs after boot.

(as is the case with your system)

You mean Svlad's. I have never seen blackouts.

Do you have KMS enabled (wiki  http://wiki.archlinux.org/index.php/Sam … de_Setting ) ? I have always used KMS.

I see you have laptop mode enabled (laptop-mode-tools ?). I'm not saying it causes any trouble but I stopped using it while investigating the freezing issue in order to simplify things.

Last edited by Aedit (2009-12-21 17:54:53)

Offline

#103 2009-12-21 18:06:13

Svlad Cjelli
Member
From: dusk till dawn
Registered: 2008-10-21
Posts: 99

Re: Archlinux on Samsung n130/n140

i am trying to set up kms...

what is ment by the line:

Put keymap early in /etc/mkinitcpio.conf HOOKS. Regenerate the init ramdisk for the kernel(s) you are running:

$ mkinitcpio -p kernel26
       or 
$ mkinitcpio -p kernel26-n140

???


Should i just add the word "keymap" to the HOOKS-Line or what?


Because i get the following errors:

[philipp@winchester ~]$ sudo mkinitcpio kernel26
Passwort: 
:: Begin dry run
ERROR: module 'intel[-_]agp' not found
ERROR: module 'i915' not found
:: Parsing hook [base]
:: Parsing hook [udev]
:: Parsing hook [keymap]
:: Parsing hook [autodetect]
:: Parsing hook [pata]
:: Parsing hook [scsi]
:: Parsing hook [sata]
:: Parsing hook [filesystems]
:: Dry run complete, use -g IMAGE to generate a real image

I am using the xf86-video-intel driver

Last edited by Svlad Cjelli (2009-12-21 18:15:59)

Offline

#104 2009-12-21 18:17:29

Aedit
Member
Registered: 2009-10-29
Posts: 138

Re: Archlinux on Samsung n130/n140

Svlad Cjelli wrote:

Is KMS enabled?

Sorry i am simply not able to set up that (both KMS and setpci)...

With your no-initial-ramdisk kernel I think you just put "i915.modeset=1" on your GRUB kernel line. See http://wiki.archlinux.org/index.php/Int … Setting.29 .  Someone else who is running kernel26-n130 could confirm that. The mkinitcpio stuff is for creating an initial ramdisk which you don't need (except for the "kernel26" standard kernel which you have installed but are not using).

infact this hole configuration is to much for me, my linux-knowledge and my freetime.
I hope there is another way to solve the blackout-problem sometime.

I think this will be resolved fairly soon and then it will be as easy as pie wink.

Last edited by Aedit (2009-12-21 18:20:51)

Offline

#105 2009-12-21 18:34:52

Svlad Cjelli
Member
From: dusk till dawn
Registered: 2008-10-21
Posts: 99

Re: Archlinux on Samsung n130/n140

With your no-initial-ramdisk kernel I think you just put "i915.modeset=1" on your GRUB kernel line

Oh, then i did not read the wiki correctly..

i added i915.modeset=1 to my kernel line and rebooted...


The screen-blackout continues :-(

Last edited by Svlad Cjelli (2009-12-21 18:36:51)

Offline

#106 2009-12-21 18:44:43

Aedit
Member
Registered: 2009-10-29
Posts: 138

Re: Archlinux on Samsung n130/n140

Sorry, the wiki was incomplete -- updated now.

So now "sudo cat /sys/module/i915/parameters/modeset" should return "1". Shame you still have the problem though...

What happens if you do "i915.modeset=0" in the GRUB line instead?

Last edited by Aedit (2009-12-21 19:03:26)

Offline

#107 2009-12-21 19:05:59

Svlad Cjelli
Member
From: dusk till dawn
Registered: 2008-10-21
Posts: 99

Re: Archlinux on Samsung n130/n140

So now "sudo cat /sys/module/i915/parameters/modeset" should return "1"

yeah it does...


Shame you still have the problem though...

yes it is

What happens if you do "i915.modeset=0" in the GRUB line instead?

same thing... blackouts....

Offline

#108 2009-12-21 19:58:44

Svlad Cjelli
Member
From: dusk till dawn
Registered: 2008-10-21
Posts: 99

Re: Archlinux on Samsung n130/n140

@Aedit:

Shame on ME!

I forgot to hit ctrl + o in nano and didn#t save my edit in menu.lst

i915.modeset=0 in Grub fixed the problem...

No flickering and no blackouts :-)

Offline

#109 2009-12-21 20:23:48

Aedit
Member
Registered: 2009-10-29
Posts: 138

Re: Archlinux on Samsung n130/n140

Cool!

So now you're running without KMS (I guess it was on by default). That should work just fine, although the question remains what the problem with KMS on is.

There was another thread about it here : http://bbs.archlinux.org/viewtopic.php?id=84444
@DonVla: any thoughts?

Offline

#110 2009-12-21 20:47:42

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: Archlinux on Samsung n130/n140

Hi all,

* First the i915 driver is compiled into the kernel26-n130 in _with kms enabled by default_.
   So there is _no need_ for external settings (like modprobe.conf or kernel boot options).
   From the comments on the AUR site:

The intel video driver with kms enabled by default is also compiled into the kernel.
My /etc/rc.conf MODULES array looks like:
"
MODULES=(acpi-cpufreq !uvcvideo !ath9k vboxdrv)
"
Note that the cpu frequency scaling, wlan and webcam drivers are not compiled in.

* I also don't have the blackout anymore. I described my prob here: http://bbs.archlinux.org/viewtopic.php? … 44#p657544
   But i don't have this anymore. I cannot explain why, I also haven't investigate further.
   Actually everything is running pretty smooth for some weeks now.

* Now to the Fn-keys:
   I did everything as described in the wiki to setup the keys in HAL.
   Though i haven't used xbindkeys to map the keys to functions, but i used the internal openbox keybind setup. Excerpt from  my rc.xml:

<keybind key="XF86Battery">
      <action name="Execute">
        <command>~/.PersonalBin/batteryDisplay</command>
      </action>
    </keybind>
    <keybind key="XF86Display">
      <action name="Execute">
        <command>~/.PersonalBin/monitor</command>
      </action>
    </keybind>
    <keybind key="XF86Launch1">
      <action name="Execute">
        <command>~/.PersonalBin/brightnessToggle</command>
      </action>
    </keybind>
    <keybind key="XF86Launch2">
      <action name="Execute">
        <command>nice python ~/.config/openbox/scripts/checkmail.py --update</command>
      </action>
    </keybind>
    <keybind key="XF86Launch3">
      <action name="Execute">
        <command>~/.PersonalBin/powersaveToggle</command>
      </action>
    </keybind>
    </keybind>
    <keybind key="XF86AudioMute">
      <action name="Execute">
        <command>~/.PersonalBin/volume mute</command>
      </action>
    </keybind>
    <keybind key="XF86WLAN">
      <action name="Execute">
        <command>~/.PersonalBin/wlanToggle</command>
      </action>
    </keybind>
    <keybind key="XF86AudioLowerVolume">
      <action name="Execute">
        <command>~/.PersonalBin/volume -</command>
      </action>
    </keybind>
    <keybind key="XF86AudioRaiseVolume">
      <action name="Execute">
        <command>~/.PersonalBin/volume +</command>
      </action>
    </keybind>
    <keybind key="XF86MonBrightnessDown">
      <action name="PreviousWindow">
        <bar>no</bar>
        <allDesktops>yes</allDesktops>
        <finalactions>
          <action name="Focus"/>
          <action name="Raise"/>
        </finalactions>
      </action>
    </keybind>
    <keybind key="XF86MonBrightnessUp">
      <action name="NextWindow">
        <bar>no</bar>
        <allDesktops>yes</allDesktops>
        <finalactions>
          <action name="Focus"/>
          <action name="Raise"/>
        </finalactions>
      </action>
    </keybind>

I can't remember where I found the Xf86 names of the keys. "xev" does not show them. However, it is easy to figure out which name is for which key.

Hope this helps a little,

Vlad

Last edited by DonVla (2009-12-21 20:59:11)

Offline

#111 2009-12-21 20:49:46

fberger
Member
From: Vienna, Austria
Registered: 2009-12-20
Posts: 6

Re: Archlinux on Samsung n130/n140

Aedit wrote:

You mean Svlad's. I have never seen blackouts.

Of course. My bad.

Do you have KMS enabled (wiki  http://wiki.archlinux.org/index.php/Sam … de_Setting ) ? I have always used KMS.

Yes, I've used KMS from the very beginning (one of the first things I set up).

I've now disabled it and the flickering seems to be gone (and I guess the blackouts too).
Can't say I'm surprised by this as there are some threads about it. Looks like I've got to wait until 2.6.33 to regain high-res framebuffers hmm

Offline

#112 2009-12-22 11:57:28

Svlad Cjelli
Member
From: dusk till dawn
Registered: 2008-10-21
Posts: 99

Re: Archlinux on Samsung n130/n140

@fberger

Did you have any problems concerning wake-on wlan?

When i suspend my System to Disk or to RAM, sometimes i have no wireless anymore.

Offline

#113 2009-12-22 12:07:19

Aedit
Member
Registered: 2009-10-29
Posts: 138

Re: Archlinux on Samsung n130/n140

The next time this happens could you check the output of "lsmod | grep ath9k", "ifconfig" and "iwconfig" ?

Offline

#114 2009-12-22 12:22:40

Svlad Cjelli
Member
From: dusk till dawn
Registered: 2008-10-21
Posts: 99

Re: Archlinux on Samsung n130/n140

sure... it just occured again :-)


[philipp@winchester ~]$ lsmod | grep ath9k
ath9k                 235519  0 
mac80211               98042  1 ath9k
ath                     5844  1 ath9k
cfg80211               88443  3 ath9k,mac80211,ath
led_class               1721  1 ath9k
[philipp@winchester ~]$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:13:77:BE:0B:5E  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:18 Base address:0xc000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:380 (380.0 b)  TX bytes:380 (380.0 b)

wlan0     Link encap:Ethernet  HWaddr 0C:60:76:58:4C:9A  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:266 errors:0 dropped:0 overruns:0 frame:0
          TX packets:285 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:177125 (172.9 Kb)  TX bytes:44348 (43.3 Kb)
[philipp@winchester ~]$ iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wlan0     IEEE 802.11bgn  Mode:Managed  Frequency:2.437 GHz  
          Access Point: Not-Associated   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off

strange isn't it...? I cant remind i had that before upgrading to AUR-Kernel hmm

Offline

#115 2009-12-22 12:26:50

Aedit
Member
Registered: 2009-10-29
Posts: 138

Re: Archlinux on Samsung n130/n140

That looks fine - the ath9k driver module is loaded and wlan0 exists. What software do you use to connect your wifi ?

Offline

#116 2009-12-22 12:30:10

fberger
Member
From: Vienna, Austria
Registered: 2009-12-20
Posts: 6

Re: Archlinux on Samsung n130/n140

Svlad Cjelli wrote:

@fberger

Did you have any problems concerning wake-on wlan?

No, WLAN always worked after suspend/hibernate.

I'm using NetworkManager for wireless network management.

Offline

#117 2009-12-22 12:36:54

Svlad Cjelli
Member
From: dusk till dawn
Registered: 2008-10-21
Posts: 99

Re: Archlinux on Samsung n130/n140

I'm using NetworkManager for wireless network management.

me too...


But i figured something out...:

Wlan only dies, when i press FN+Escape.

Then it appears, that after waking up the netbook it suspends to Ram a second time.


If i just close the lid everything is ok.


I configured my suspend-thing like that:

http://wiki.archlinux.org/index.php/Sam … _Hibernate

i installes acpid and edited my /etc/acpi/handler.sh so that it looks like this:

#!/bin/sh
# Default acpi script that takes an entry for all actions

# NOTE: This is a 2.6-centric script.  If you use 2.4.x, you'll have to
#       modify it to not use /sys

minspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq`
maxspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq`
setspeed="/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed"

set $*

case "$1" in
    button/power)
        #echo "PowerButton pressed!">/dev/tty5
        case "$2" in
            PWRF)   logger "PowerButton pressed: $2" ;;
            *)      logger "ACPI action undefined: $2" ;;
        esac
        ;;
    button/sleep)
        case "$2" in
            SLPB)   echo -n mem >/sys/power/state ;;
            *)      logger "ACPI action undefined: $2" ;;
        esac
        ;;
    ac_adapter)
        case "$2" in
            AC)
                case "$4" in
                    00000000)
                        echo -n $minspeed >$setspeed
                        #/etc/laptop-mode/laptop-mode start
                    ;;
                    00000001)
                        echo -n $maxspeed >$setspeed
                        #/etc/laptop-mode/laptop-mode stop
                    ;;
                esac
                ;;
            *)  logger "ACPI action undefined: $2" ;;
        esac
        ;;
    battery)
        case "$2" in
            BAT0)
                case "$4" in
                    00000000)   #echo "offline" >/dev/tty5
                    ;;
                    00000001)   #echo "online"  >/dev/tty5
                    ;;
                esac
                ;;
            CPU0)    
                ;;
            *)  logger "ACPI action undefined: $2" ;;
        esac
        ;;
    button/lid)
       if [ `/bin/awk '{print $2}' /proc/acpi/button/lid/LID0/state` = closed ]; then
           /usr/sbin/pm-suspend
       fi
       ;;

esac

Does this have anything to do with my wlan?

Offline

#118 2009-12-22 12:54:04

fberger
Member
From: Vienna, Austria
Registered: 2009-12-20
Posts: 6

Re: Archlinux on Samsung n130/n140

Svlad Cjelli wrote:

i installes acpid and edited my /etc/acpi/handler.sh so that it looks like this:

[...]
    button/sleep)
        case "$2" in
            SLPB)   echo -n mem >/sys/power/state ;;
            *)      logger "ACPI action undefined: $2" ;;
        esac
        ;;
[...]
    button/lid)
       if [ `/bin/awk '{print $2}' /proc/acpi/button/lid/LID0/state` = closed ]; then
           /usr/sbin/pm-suspend
       fi
       ;;

esac

Does this have anything to do with my wlan?

Your lid action uses a different suspend method than your sleep button.

I just tried it on my N140, and "echo mem > /sys/power/state" leaves WiFi non-working after resume (although I can just disable and re-enable it in NetworkManager to get it working again).

With pm-suspend, everything is fine, and NetworkManager reconnects automatically. I suggest you just change that line in the button/sleep handler to call `pm-suspend` smile

Offline

#119 2009-12-22 12:59:18

Aedit
Member
Registered: 2009-10-29
Posts: 138

Re: Archlinux on Samsung n130/n140

Edt: deleted -- fberger posted the same thing just before me!

Last edited by Aedit (2009-12-22 13:07:01)

Offline

#120 2009-12-22 13:04:47

Svlad Cjelli
Member
From: dusk till dawn
Registered: 2008-10-21
Posts: 99

Re: Archlinux on Samsung n130/n140

hehe wink

that works... thanks both of you...


Svlad

Offline

#121 2009-12-24 10:46:27

Svlad Cjelli
Member
From: dusk till dawn
Registered: 2008-10-21
Posts: 99

Re: Archlinux on Samsung n130/n140

done.... sorry

Last edited by Svlad Cjelli (2009-12-24 10:52:47)

Offline

#122 2010-01-05 16:12:58

monxster
Member
Registered: 2010-01-05
Posts: 1

Re: Archlinux on Samsung n130/n140

Hi Guys,

I have been following this thread with interest and have signed up specifically to see if someone from here could help me. 

Just to let you konw I am a complete Linux newbie and until last week had not had any experience with either a linux OS or any command line work.  My first experience with Linux was last week when I got my girlfriend a Dell Mini 9 and proceeded to install Ubuntu 9.10 on it for her. The installation process was relatively easy and the few driver issues I had were also resolved quickly and to cut a long story short I quickly realised how great linux is in comparison to windows.

I have now taken delivery of a UK spec (Realtek Wifi and 5900mh battery) and would very much like to start dual booting a linux OS on it and then look to move completely over a bit further down the line (for that to happen I would need to find a mail client that is compatible with Exchange 2003 and RPC over HTTPS).

After reading loads of articles on the net (this thread included) I can see that few distros at the moment work out of the box with this laptop and indeed few are able to work with it even after some tweaking.   The only one I have read about is Arch Linux and that is what brings me to you guys.

I would like to install Arch Linux on this laptop as a dualboot OS and then I would like to carry out the required patches from the Samsung N140 wiki in order to get a fully functional OS but to be honest even after reading the wiki I am a bit uncertain as to how to set the whole thing up and was hoping one of you could help.

On the Arch install can someone explain to me how I can go about setting up the partitions?  On ubuntu I just clicked on use the next available continous free space and the rest was auto created.  However on Arch is not that simple and I am not certain what to put so that it uses the space other than my windows partition? 

Also what should I set the sizes to? 
And the mounting points? 
Also if my HDD is 160GB can I have a 40GB Windows Partition a 40GB Linux Partition and then a 80GB common partition to use as my user files for windows and linux or do I have to have the 80gb space partitioned half for linux exclusively and half for windows?

Once this is done I guess I just select the core packages to install by default and that should be OK?  Or is there any additional packages I should select so I can start with the tweaks?

Sorry if these questions are silly but it is a big leap for me to go from windows GUI to almost 100% cli! 

Also am I right in assuming that once the environment is installed I can at some point load a desktop framework so I can have a GUI again?  If so which one do you guys recommend?

Finally in the installation and I noticed that the package names as well as keyboard layouts and font names are not always descriptive.  I there somewhere I can go to read what exactly a package has so I know what to install moving forward?

Thanks guys and sorry for being a newbie so please don't flame me!   big_smile

Monx

Offline

#123 2010-01-05 16:21:56

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: Archlinux on Samsung n130/n140

@Monx You are going to need to do a lot of reading, learning, and work to get arch installed and properly maintained. Arch is not a newbie friendly distro. It is possible, however for a noob to use arch provide he/she/it is willing learn and do a lot of reading. By no means is it an out-of-the-box distribution.

As you have "hijacked" this thread, please open up a new thread in the newbie comer (using the text from your above post).

Cheers

Last edited by pyther (2010-01-05 16:22:14)


Website - Blog - arch-home
Arch User since March 2005

Offline

#124 2010-01-13 15:03:10

Svlad Cjelli
Member
From: dusk till dawn
Registered: 2008-10-21
Posts: 99

Re: Archlinux on Samsung n130/n140

Hey Guys,

potential solution of all our problems (unfortunately only n130-users up to now) via new BIOS 06CM

http://org.downloadcenter.samsung.com/d … 0_06CM.exe

Seems to be a rewriten bios from n128


for more information see here:

https://bugs.launchpad.net/ubuntu/+sour … mments=all

post #41


tryin it out right now!



EDIT: NOTHING CHANGED, THE FREEZES CONTINUE! :-)


In fact it doesnt matter for me. I think the kernel of DonVla is great.



DonVla: Can you tell me how to enable the brain fuck sheduler in your kernel?
Or is it enabled by defaukt?


Svlad

Last edited by Svlad Cjelli (2010-01-13 15:30:54)

Offline

#125 2010-01-13 16:38:16

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: Archlinux on Samsung n130/n140

Is there a way to upgrade the new bios without windows installed?
Sadly (or luckily), I have only arch on my n130.
@Svlad:
1. Do the freezes still continue with the new bios version? So there is no gain in upgrading...
2. To enable BFS set "_USE_BFS" to 1 (as said in the PKGBUILD and comments wink ). And then at some point in the beginning you will be asked if you want to use BFS and then hit "y".

Vlad

PS: To see if it's actually loaded at boot search in your kernel.log/dmesg for "BFS CPU Scheduler v0.xxx by Con Kolivas".
Perhaps you can tell about your performance experience. I haven't noticed much with BFS enabled, neither performance boost nor drawback.
On the other hand, I haven't used the stock kernel very much.

Last edited by DonVla (2010-01-13 16:52:45)

Offline

Board footer

Powered by FluxBB