You are not logged in.

#1 2009-08-03 16:49:40

cell
Member
Registered: 2007-10-23
Posts: 111

Few issues with N120

I got a few issues with the N120 netbook that I hope you could help me to sort out.

1.
First the brightness up/down keys. First I gave this fix a go.
http://www.sammynetbook.com/plugins/for … .php?29576
It works but its very unstable for me, sometimes it will get stuck and just turn the screen all the way down and then hang for some time before being able to turn the light back on. The icon will hang on the desktop too. Beside that it occasionally makes gnome panel freeze or really most of the time.

Then I gave .xbindkeysrc a try from the NC10 wiki.
#Brightness up/down
"xbacklight +10"
m:0x0 + c:111
"xbacklight -10"
m:0x0 + c:116

That seems to work fine however it is not binded to the Fn (just binded to up/down arrow) key I am sure I am missing something pretty simple here, but....

2.
Wifi Fn key binding is not working. xbindkeys -k gives me -
"(Scheme function)"
m:0x0 + c:75

Here I am simple not sure what "Scheme function" to use.

3.
I would like to blacklist the webcam just not sure what module to blacklist. I did check for a BIOS option but unfortunately there is none.
lsmod

Module                  Size  Used by
ipv6                  277972  10 
hidp                   14500  1 
hid                    42496  1 hidp
fuse                   60896  2 
i915                  183016  1 
drm                   154656  2 i915
i2c_algo_bit            5864  1 i915
rfcomm                 39028  4 
bridge                 54008  0 
stp                     2088  1 bridge
llc                     5552  2 bridge,stp
bnep                   10916  2 
sco                    10952  2 
l2cap                  24132  21 hidp,rfcomm,bnep
ext2                   69036  1 
cpufreq_powersave       1380  0 
snd_seq_dummy           2696  0 
snd_seq_oss            31168  0 
cpufreq_ondemand        7672  2 
snd_hda_codec_realtek   206504  1 
snd_seq_midi_event      7012  1 snd_seq_oss
acpi_cpufreq            8624  0 
snd_seq                53744  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          6768  3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_hda_intel          26664  0 
freq_table              3716  2 cpufreq_ondemand,acpi_cpufreq
snd_hda_codec          71716  2 snd_hda_codec_realtek,snd_hda_intel
snd_pcm_oss            40352  0 
uvcvideo               61040  0 
iTCO_wdt               10952  0 
snd_hwdep               7656  1 snd_hda_codec
snd_mixer_oss          17540  1 snd_pcm_oss
fan                     4392  0 
joydev                 10400  0 
i2c_i801                9656  0 
iTCO_vendor_support     3080  1 iTCO_wdt
btusb                  12632  4 
intel_agp              27484  1 
snd_pcm                73672  3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_timer              21100  2 snd_seq,snd_pcm
videodev               36544  1 uvcvideo
v4l1_compat            15688  2 uvcvideo,videodev
bluetooth              56740  10 hidp,rfcomm,bnep,sco,l2cap,btusb
battery                10984  0 
video                  19832  1 i915
output                  2884  1 video
button                  5556  0 
thermal                13888  0 
pcspkr                  2372  0 
ac                      4360  0 
i2c_core               22776  4 i915,drm,i2c_algo_bit,i2c_i801
processor              35800  3 acpi_cpufreq
agpgart                32756  3 drm,intel_agp
snd                    58436  11 snd_seq_oss,snd_hda_codec_realtek,snd_seq,snd_seq_device,snd_hda_intel,snd_hda_codec,snd_pcm_oss,snd_hwdep,snd_mixer_oss,snd_pcm,snd_timer
soundcore               6848  1 snd
snd_page_alloc          8876  2 snd_hda_intel,snd_pcm
sg                     27928  0 
psmouse                59644  0 
evdev                  10176  13 
serio_raw               5704  0 
ndiswrapper           211324  0 
rtc_cmos               11212  0 
rtc_core               18048  1 rtc_cmos
rtc_lib                 2500  1 rtc_core
ext3                  134380  2 
jbd                    48504  1 ext3
mbcache                 7080  2 ext2,ext3
sd_mod                 27328  5 
ata_generic             4680  0 
ata_piix               23080  4 
pata_acpi               4228  0 
libata                168012  3 ata_generic,ata_piix,pata_acpi
uhci_hcd               23540  0 
scsi_mod              110708  3 sg,sd_mod,libata
ide_pci_generic         3816  0 
sky2                   47240  0 
ehci_hcd               35664  0 
ide_core              101480  1 ide_pci_generic
usbcore               150192  6 uvcvideo,btusb,ndiswrapper,uhci_hcd,ehci_hcd

Other then these few issues all really seems to work really well. I have only had Arch installed for a week or so (not a lot of time on my hands atm though) but sorting these issues would would make it a 100% for me.

I would appreciate if you could help me out.

Offline

#2 2009-08-03 22:30:15

cell
Member
Registered: 2007-10-23
Posts: 111

Re: Few issues with N120

Kinda solved 1. and 3. is solved.

1.
I setup the brightness keys with Ctrl + Up/Down.
It works fine, however there's no desktop icon/gadget attached to it, which would be nice.
If there is a better solution I still very much like to know.

3.
Blacklisted uvcvideo. Without being to scientific I would guess it gives between 10-20 min more.

I am pretty much sorted out now, if you got a sammy you should check out this forum its very cool.
http://www.voria.org/forum/index.php

Last edited by cell (2009-08-04 15:19:45)

Offline

#3 2009-08-29 18:25:43

lswest
Member
From: Munich, Germany
Registered: 2008-06-14
Posts: 456
Website

Re: Few issues with N120

1.  My "gadget" is a basic script:

#!/bin/sh
# display brightness script
# author: lswest

usage="usage: $0 -c {up|down}"
command=
increment=5%

while getopts h o
do case "$o" in
    h) echo "$usage"; exit 0;;
    ?) echo "$usage"; exit 0;;
esac
done

shift $(($OPTIND - 1))
command=$1

if [ "$command" = "" ]; then
    echo "usage: $0 {up|down}"
    exit 0;
fi

display_brightness=0

if [ "$command" = "up" ]; then
    $(xbacklight -inc $increment)
    display_brightness=$(xbacklight|cut --delimiter="." -f 1)
fi

if [ "$command" = "down" ]; then
    $(xbacklight -dec $increment)
    display_brightness=$(xbacklight|cut --delimiter="." -f 1)
fi

icon_name=""

if [ "$icon_name" = "" ]; then
    if [ "$display_brightness" = "0" ]; then
        icon_name="notification-display-brightness-off"
    else
        if [ "$display_brightness" -lt "33" ]; then
            icon_name="notification-display-brightness-low"
        else
            if [ "$display_brightness" -lt "67" ]; then
                icon_name="notification-display-brightness-medium"
            else
                if [ "$display_brightness" -lt "100" ]; then
                     icon_name="notification-display-brightness-high"
                else
                     icon_name="notification-display-brightness-full"
                fi
            fi
        fi
    fi
fi
notify-send " " -i $icon_name -h int:value:$display_brightness -h string:synchronous:brightness

It uses notify-osd and displays the bar/icon.  If the icon is missing, you will have to copy the notification-* svg files over from the human icon theme.  Just in case you'd like it.

Depends what you want to do with the wireless.  You can just bring the interface down with

sudo ifconfig wlan0 down

Or else you can remove the module with

sudo modprobe -r <module>

Lswest <- the first letter of my username is a lowercase "L".
"...the Linux philosophy is "laugh in the face of danger". Oops. Wrong one. "Do it yourself". That's it." - Linus Torvalds

Offline

#4 2009-09-07 18:24:21

knedlyk
Member
From: L'viv, Ukraine
Registered: 2009-04-14
Posts: 163
Website

Re: Few issues with N120

I solved brightness issue in a simple way:
added N120 to the file /usr/share/hal/fdi/information/10freedesktop/30-keymap-misc.fdi, as it suggested in https://help.ubuntu.com/community/NC10 for NC10. After reboot brightness  starts working (Fn+Up and Fn+Down).

Offline

#5 2009-09-29 14:50:19

knedlyk
Member
From: L'viv, Ukraine
Registered: 2009-04-14
Posts: 163
Website

Re: Few issues with N120

I created N120 Archlinux installation guide wiki page, http://wiki.archlinux.org/index.php/Samsung_N120 , It slightly differs from NC10 wiki.  Please add you comments/suggestions or edit wiki yourself.

Offline

#6 2010-04-08 02:58:42

ighea
Member
From: Finland
Registered: 2007-10-20
Posts: 118

Re: Few issues with N120

It seems the Samsung n120 has not been too popular among arch linux users. Most of the things seems to be working out nicely with the up to date kernel, but still brightness controls and disabling/enabling wireless is acting up a little bit. Also Samsung has changed some of the hardware included in the first releases of N120. Mine is shipped with Realtek wlan chip instead of the Atheros one.

I really hope all the rest issues are being fixed during next few kernel releases. x)


(╯°□°)╯~ ┻━┻

Offline

Board footer

Powered by FluxBB