You are not logged in.

#151 2010-01-28 13:27:28

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

Re: Archlinux on Samsung n130/n140

Svlad Cjelli wrote:

When will you try out the new Mainline-Kernel?

It's the same libata-ata_piix-clear-spurious-IRQ patch I use for the n130 kernel.
For now I'll stick with the stable release. Works ok so far. It's great that the flickering issue is also solved.

PS:I have a question about kms:
/sys/module/i915/parameters/modset shows "-1" though kms is compiled into the kernel. What does that mean now?
It's disabled or enabled or else?

PPS: I played a little with the kms stuff.
First, kms is enabled though parameters/modeset shows "-1". I don't have the X11 flickering with kms enabled (at least in the last 4 hours), without the patch applied and without the i915.powersave=0 kernel boot option set. But on the other hand this occured so randomly and seldom, so that I cannot say if it finally disappeared or it will still happen in some time.

Last edited by DonVla (2010-01-28 18:46:16)

Offline

#152 2010-01-28 22:59:12

bikepunk
Member
Registered: 2010-01-21
Posts: 24

Re: Archlinux on Samsung n130/n140

I just tried the kernel26-n130 2.6.32.6-1 from AUR, and of course, there is not the driver for my wireless card sad
I really like this minimal kernel though, I guess the best is to compile a kernel with the RTL8192E driver... but I'm not able to do that yet.
Then, I would be very glad if anyone would add such thing in AUR roll

Humm, wait, may be the kernel26-n130 2.6.32.6-1 would work with my wireless using Ndiswrapper, I'll try and post here the result.

Offline

#153 2010-01-28 23:31:28

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

Re: Archlinux on Samsung n130/n140

@bikepunk: You can fix this easily. Before you compile just edit the kernel config file so that the driver you need is compiled. I guess you need:
CONFIG_STAGING=y
CONFIG_RTL8192E=y

Last edited by Aedit (2010-01-28 23:50:50)

Offline

#154 2010-01-29 10:58:11

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

Re: Archlinux on Samsung n130/n140

Aedit wrote:

@Svlad: Thanks for checking the flickering issue, that's good news.

The work on the freezing problem has resulted in three kernel patches. The one you mention is just one of those and it will not solve the problem alone. The full fix for the freezing problem will probably not reach mainline until 2.6.34 unfortunately.

hmm... and what about this:?

http://bugzilla.kernel.org/show_bug.cgi?id=14314#c38

Offline

#155 2010-01-29 13:06:39

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

Re: Archlinux on Samsung n130/n140

That agrees with what I said.

Offline

#156 2010-01-29 13:15:24

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

Re: Archlinux on Samsung n130/n140

Aedit wrote:

That agrees with what I said.

Ah ok, it seems that i doesn't really know what i am talking about tongue

I thought if a patch reaches "upstream" it'd be included in the mainline-kernel at once... :-)

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


regarding powersaving:

http://www.cywhale.de/ubuntu-karmicsams … romsparen/


Translation:

http://tinyurl.com/yjb2mph


Is it possible to enable the Intel-PHC-kernel for Arch?


Svlad

Last edited by Svlad Cjelli (2010-01-29 13:15:56)

Offline

#157 2010-01-29 14:06:07

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

Re: Archlinux on Samsung n130/n140

There's an AUR package which builds the phc-intel kernel module, BUT do not assume that you can use NC10 settings on the N130/140. Afaik it uses a lower voltage processor than the NC10 (giving better battery life already). The risk of instability is not worth it for me, so I will not even try it. Ask over at www.linux-phc.org about using it with this CPU.

The other things he mentions can be tried out in your /etc/rc.local and investigated with powertop. Look also through the Arch wiki pages (Laptop, NC10 and N140). Power saving (PS mode) in wlan has been reported to have a bug -- see the note in the wiki.

Offline

#158 2010-01-30 02:14:06

bikepunk
Member
Registered: 2010-01-21
Posts: 24

Re: Archlinux on Samsung n130/n140

Aedit, I've tried your suggestion, I set
CONFIG_STAGING=y (CONFIG_RTL8192E does not exist)
and comment the CONFIG_ATH* lines, and tried to compile, but then, I'm getting
==> ERROR: One or more files did not pass the validity check!
for the MD5check... of course... but I actually don't know what to do.

anyway, it appears that this config file was generated automatically, I guess then there is a way that I generate it myself from my config... I've just no idea how to do such thing (sorry for my lack of experience)

Offline

#159 2010-01-30 02:32:17

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

Re: Archlinux on Samsung n130/n140

@bikepunk
Do you also have a N130? If yes I'll add the module to the kernel in the AUR.

PS: Try this PKGBUILD (www.nakamura-gebiet.de/PKGBUILD) with this config (www.nakamura-gebiet.de/config).
RTL8192E is enabled and the checksums should be correct.

Last edited by DonVla (2010-01-30 02:53:18)

Offline

#160 2010-01-30 13:41:47

bikepunk
Member
Registered: 2010-01-21
Posts: 24

Re: Archlinux on Samsung n130/n140

@ DonVla
first thanks a lot for help,
I'll give a try to your solution and post the result here
(I've got a N140 US version (that's why I've got a RTL8192E and not an athos wireless card)

Offline

#161 2010-01-30 19:41:08

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

Re: Archlinux on Samsung n130/n140

Hello
I think it would make sense to change the kernel26-n130 to kernel26-n1X0 or so and also support several n130/n140 versions.
These all have basically the same hardware only some peripheric hardware differs. The new kernel would be same just 3-4 new modules have to be added (rtl chipset support, bluetooth i think). I am also willing to maintain it. I just need a (working) config for the n140 or a "lsmod" output.
What do you think?

PS: I see there is also a N150: http://www.samsung.com/uk/consumer/pc-p … fullspec=F

Last edited by DonVla (2010-01-30 20:02:46)

Offline

#162 2010-01-31 01:07:55

bikepunk
Member
Registered: 2010-01-21
Posts: 24

Re: Archlinux on Samsung n130/n140

I think you're great big_smile

so, just to know my model is this one : http://www.samsung.com/us/consumer/offi … l&tab=spec

I'm trying to compile the above thing...

Offline

#163 2010-01-31 01:44:07

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

Re: Archlinux on Samsung n130/n140

@bikepunk
Could you post the lsmod output of the arch stock kernel somewhere?

Offline

#164 2010-01-31 02:53:54

bikepunk
Member
Registered: 2010-01-21
Posts: 24

Re: Archlinux on Samsung n130/n140

here you are :
http://pastebin.com/m25b2a090

by the way, two questions,

-to remove the kernels I compiled wich do not fit my config, is it
pacman -R mykernelname
enougth ? will I be able to install a kernel with the same name later on without problems ?

-when I try to compile the above (from http://bbs.archlinux.org/viewtopic.php? … 38#p698138 ), at some point I'm getting

*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.

`.config' -> `/home/qwerty/builds/kernel26-n130/kernel26-n130/config'

then a blue screen with things to set... I guess it's already done and I just have to accept it, but I cannot find how to "accept" these settings... I tried Exit and got :

==> ERROR: Build Failed.
    Aborting...

what am I supposed to do ? (the kernel I compiled 2 days ago didn't give me this blue screen)

Offline

#165 2010-01-31 04:50:54

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

Re: Archlinux on Samsung n130/n140

bikepunk wrote:

thanks

by the way, two questions,

-to remove the kernels I compiled wich do not fit my config, is it
pacman -R mykernelname
enougth ? will I be able to install a kernel with the same name later on without problems ?

yes, it's ok. sure you can install and uninstall it everytime you want.

-when I try to compile the above (from http://bbs.archlinux.org/viewtopic.php? … 38#p698138 ), at some point I'm getting

*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.

`.config' -> `/home/qwerty/builds/kernel26-n130/kernel26-n130/config'

then a blue screen with things to set... I guess it's already done and I just have to accept it, but I cannot find how to "accept" these settings... I tried Exit and got :

==> ERROR: Build Failed.
    Aborting...

what am I supposed to do ? (the kernel I compiled 2 days ago didn't give me this blue screen)

Ahh, sorry my fault! When I changed the config I forgot to uncomment the menuconfig line.
Just edit the PKGBUILD and uncomment this line:
before:

make menuconfig && cp -v .config ${startdir}/config && msg "Stopping build" && return 1

after:

#make menuconfig && cp -v .config ${startdir}/config && msg "Stopping build" && return 1

Then compilation should work.

Last edited by DonVla (2010-01-31 04:57:49)

Offline

#166 2010-01-31 21:41:44

bikepunk
Member
Registered: 2010-01-21
Posts: 24

Re: Archlinux on Samsung n130/n140

the kernel compiled and my wireless works !!! big_smile (I've got the ath* driver that I do not need though, but I don't mind much)
thanks DonVla

other thing :
I just tried the suspend and hibernate things, and it DOESN'T work sad
I mean, it suspend but after resume, everything is frozen...
I've even tried to do it from root without X... there is nothing to do, it's totally frozen, I had to hard reboot each time...

in case you need, here is my /var/log/pm-suspend.log : http://pastebin.com/m181e4a24
as you can see there, there is not the log for the resume...

I looked around to see if anyone got a solution for a similar problem, I got people with the same problem, but no solution... :
the freshest reports :
http://bbs.archlinux.org/viewtopic.php?id=89977
http://bbs.archlinux.org/viewtopic.php?id=88157

and older things (but apparently same problem) :
http://bbs.archlinux.org/viewtopic.php?id=54440

at ubuntu :
http://ubuntuforums.org/showthread.php?t=904633
...

I'll try things around kms and post the result

Last edited by bikepunk (2010-02-01 01:33:13)

Offline

#167 2010-02-01 02:04:28

bikepunk
Member
Registered: 2010-01-21
Posts: 24

Re: Archlinux on Samsung n130/n140

i915.powersave=0
changes nothing but if I disable KMS with
i915.modeset=0

I can suspend and hibernate !! big_smile

so, something is wrong, but I found a solution (thanks to the N140wikipage)

as I'm here, something bothering me but wich doesn't seems to be a real issue (I've got no idea):
when I startx
then I move to tty1
I see something like :
lxpanel (lxpanel:xxxx): Gdk-CRITICAL **: gdk_x11_screen_supports_net_wm_hint: assertion `GDK_IS_SCREEN (screen)' failed.

my Xorg.0.log : http://pastebin.com/m276bcd40
my startx.log (created from startx > /tmp/startx.log : http://pastebin.com/m31e6f16a
(there is not the GDK error yet at this point)

(I had this issue with all the kernels and all the configurations I tried but everything seems working)

[edit]

no way to resume after suspending today, KMS enabled or disabled... sad

Last edited by bikepunk (2010-02-01 08:25:14)

Offline

#168 2010-03-01 13:08:16

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

Re: Archlinux on Samsung n130/n140

Hello,

I've added the "samsung-laptop" module to the kernel26-n130. But what does it actually do?
I googled a little (very little), but haven't found anything so far.
Perhaps someone  can enlighten me a little up.
Vlad

Last edited by DonVla (2010-03-01 15:21:36)

Offline

#169 2010-03-03 00:54:40

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

Re: Archlinux on Samsung n130/n140

Best to read the source in drivers/staging/samsung-laptop.c. Here's a part of it:

/*
* This driver is needed because a number of Samsung laptops do not hook
* their control settings through ACPI.  So we have to poke around in the
* BIOS to do things like brightness values, and "special" key controls.
*/

Set samsung-laptop.debug=1 and check the kernel messages to see if it does anything with the BIOS you are running.

Offline

#170 2010-03-03 07:50:08

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

Re: Archlinux on Samsung n130/n140

Aedit wrote:

Best to read the source in drivers/staging/samsung-laptop.c. Here's a part of it:

/*
* This driver is needed because a number of Samsung laptops do not hook
* their control settings through ACPI.  So we have to poke around in the
* BIOS to do things like brightness values, and "special" key controls.
*/

Set samsung-laptop.debug=1 and check the kernel messages to see if it does anything with the BIOS you are running.

Hehe, thanks Aedit. I actually did after posting.
But i cannot even load the module here:

 # modprobe samsung-laptop 
FATAL: Error inserting samsung_laptop (/lib/modules/2.6.33-N130/kernel/drivers/staging/samsung-laptop/samsung-laptop.ko): Invalid argument
# modprobe samsung-laptop force=1
FATAL: Error inserting samsung_laptop (/lib/modules/2.6.33-N130/kernel/drivers/staging/samsung-laptop/samsung-laptop.ko): Invalid argument

Any hints?

Vlad

Offline

#171 2010-03-03 16:11:12

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

Re: Archlinux on Samsung n130/n140

Do you see any debug messages?

Offline

#172 2010-03-04 12:32:01

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

Re: Archlinux on Samsung n130/n140

Aedit wrote:

Do you see any debug messages?

No debug messages. I cannot even load the module, same with debug=1 options.

PS: Is anyone using this module?

PPS: Ok, i searched a little. It seems it is a bios thing. My bios is too old i guess.
kernel.log shows:

kernel: samsung_laptop: found laptop model N130'                                                                                            │  
kernel: This computer does not support SABI

Don't know what SABI means, but i think it's short for samsung bios...
However, I don't really need this module. Baklight works fine through setpci, but LED control for wlan etc would be nice though.

Last edited by DonVla (2010-03-04 12:53:38)

Offline

#173 2010-04-07 10:17:58

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

Re: Archlinux on Samsung n130/n140

hey DonVla,

what does the autoiso.patch do in the new kernel?

big_smile

Offline

#174 2010-04-07 12:09:09

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

Re: Archlinux on Samsung n130/n140

It sets the X priority from -1 to 0.
Haven't tested yet, though.

Offline

#175 2010-05-14 17:03:26

birdspider
Member
From: Vienna
Registered: 2007-12-29
Posts: 33
Website

Re: Archlinux on Samsung n130/n140

I spent 5 hours trying to enable a bluetooth dongle on the n130. HID mode worked but no HCI device was registered, unti it struck me: Enable the BT HCI config line in the config before compiling smile

Offline

Board footer

Powered by FluxBB