Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
A couple of laptop issues....
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
gentoo-newbie
n00b
n00b


Joined: 18 Jan 2004
Posts: 60

PostPosted: Mon Jan 19, 2004 9:53 pm    Post subject: A couple of laptop issues.... Reply with quote

Well, I just installed Gentoo on my hp ze4430us, and so far it is working fairly well (better overall than Mandrake did at least). However, i have a couple problems....

First is that I can't seem to get sound working. I have the gentoo-dev-sources kernel with alsa support configured in, but i have no sound....

Second, is this synaptics touchpad. The scrolling part doesn't work, and the touchpad is fairly jumpy overall. I found a synaptics driver in portage, but it is "masked," and I can't emerge it.

Third, I can't seem to get access to my Windows filesytem. Mandrake mounted it and put a shortcut to it on the desktop automatically, but when I even click on /dev/hda1, it tells me "permission denied" without even asking for the root password.

Any help would be greatly appreciated :D .
Back to top
View user's profile Send private message
plasmagunman
l33t
l33t


Joined: 07 Jun 2002
Posts: 604
Location: berlin

PostPosted: Tue Jan 20, 2004 12:31 am    Post subject: Re: A couple of laptop issues.... Reply with quote

gentoo-newbie wrote:
First is that I can't seem to get sound working. I have the gentoo-dev-sources kernel with alsa support configured in, but i have no sound....

is your user in the "audio"-group? try the command "groups" to test it. if not, use "usermod" to change it. if this doesn't work you could post the output of "ls -l /dev/sound/". is alsa started on boot? just check if one of the files "/etc/runlevels/boot/alsasound" or "/etc/runlevels/default/alsasound" exist.
Quote:
Second, is this synaptics touchpad. The scrolling part doesn't work, and the touchpad is fairly jumpy overall. I found a synaptics driver in portage, but it is "masked," and I can't emerge it.

there is already a synaptics-driver included in xfree. backup your /etc/X11/XF86Config and edit it:
in "module"-section add:
Code:
Load  "synaptics"

my "inputdevice"-section looks like this. you have to adjust at least "identifier", and i'm not sure if "protocol" and "device" are laptop-specific.
Code:

        Identifier  "Mouse0"
        Driver      "synaptics"
        Option      "Protocol" "event"
        Option      "Device" "/dev/input/event0"
    Option      "LeftEdge"     "1900"
    Option      "RightEdge"    "5400"
    Option      "BottomEdge"   "1800"
    Option      "TopEdge"      "3900"
    Option      "FingerLow"    "25"
    Option      "FingerHigh"   "30"
    Option      "MaxTapTime"   "180"
    Option      "MaxTapMove"   "220"
    Option      "VertScrollDelta" "100"
    Option      "MinSpeed"     "0.02"
    Option      "MaxSpeed"     "0.18"
    Option      "AccelFactor"  "0.0010"
#    Option      "Repeater"     "/dev/ps2mouse"
#    Option      "SHMConfig"    "on"
        Option      "ZAxisMapping" "4 5"


Quote:
Third, I can't seem to get access to my Windows filesytem. Mandrake mounted it and put a shortcut to it on the desktop automatically, but when I even click on /dev/hda1, it tells me "permission denied" without even asking for the root password.

does your "/etc/fstab" countain a line
Code:
/dev/hda1     /mnt/SOMEWHERE     vfat     noauto,user     0 0

? without this line and "user" users won't be allowed to mount it. did you compile the filesystem "vfat" into your kernel? try "mount /dev/hda1" in a terminal and post the result.
_________________
please, feel free to correct my english. - por favor, corrige mi español.


Last edited by plasmagunman on Tue Jan 20, 2004 12:34 am; edited 1 time in total
Back to top
View user's profile Send private message
jetblack
Guru
Guru


Joined: 15 Jan 2003
Posts: 340
Location: Evanston, IL, USA

PostPosted: Tue Jan 20, 2004 12:34 am    Post subject: Re: A couple of laptop issues.... Reply with quote

plasmagunman wrote:
gentoo-newbie wrote:
First is that I can't seem to get sound working. I have the gentoo-dev-sources kernel with alsa support configured in, but i have no sound....

is your user in the "audio"-group? try the command "groups" to test it. if not, use "usermod" to change it. if this doesn't work you could post the output of "ls -l /dev/sound/". is alsa started on boot? just check if one of the files "/etc/runlevels/boot/alsasound" or "/etc/runlevels/default/alsasound" exist


Also, don't forget that all of the alsa channels are muted by default. Emerge alsamixer and use it to unmute them and set the volume if you haven't already.
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Tue Jan 20, 2004 12:34 am    Post subject: Reply with quote

These are excellent suggestions. Might I also recommend some diligent searching of the forums, and you'll find some more ideas.
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
gentoo-newbie
n00b
n00b


Joined: 18 Jan 2004
Posts: 60

PostPosted: Tue Jan 20, 2004 2:36 am    Post subject: Reply with quote

Ok, I have the touchpad working now (thanks for the help), but I'm still having problems with the rest. I tried searching the forums, but most of what I found went right over my head :( .
I probably should have said this before, but I get an error message when I start KDE:
Error while initializing the sound driver:
device: default can't be opened for playback (No such device)
Neither /etc/runlevels/boot/alsasound nor /etc/runlevels/default/alsasound exist
ls -l /dev/sound/ gives me:
Code:
total 0
crw-------    1 andrew   audio      14,    1 Jan   1   1970 sequencer
crw-------    1 andrew   audio      14,    8 Jan   1   1970 sequencer2

As for my Windows partition, I edited my fstab, and mounted my /dev/hda1 at /mnt/windows, but the problem is, I can only access it when I'm root. I tried changing the permissions (by right-clicking and going to properties) but it keeps telling me I can't.
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Tue Jan 20, 2004 2:56 am    Post subject: Reply with quote

Here is how my XP partition is listed in my /etc/fstab:

Code:

/dev/hda1               /winxp          ntfs            ro,umask=0             0 0

The tricky bit is "umask=0" which permits all users total access; if you want finer permissions, set the umask value to something else (in octal). This will work for FAT-like filesystems as well.

Concerning ALSA, have you included support for your sound chipset? Here is my /dev/snd (ALSA native devices):

Code:

18:53:30 > ls -alF /dev/snd
total 0
drwxr-xr-x    1 root     root            0 Dec 31  1969 ./
drwxr-xr-x    1 root     root            0 Dec 31  1969 ../
crw-rw----    1 root     audio    116,   0 Dec 31  1969 controlC0
crw-rw----    1 root     audio    116,  24 Dec 31  1969 pcmC0D0c
crw-rw----    1 root     audio    116,  16 Dec 31  1969 pcmC0D0p
crw-rw----    1 root     audio    116,  25 Dec 31  1969 pcmC0D1c
crw-rw----    1 root     audio    116,   1 Dec 31  1969 seq
crw-rw----    1 root     audio    116,  33 Dec 31  1969 timer
18:53:38 >


And my /dev/sound (OSS emulation devices):

Code:

18:53:38 > ls -alF /dev/sound/
total 0
drwxr-xr-x    1 root     root            0 Dec 31  1969 ./
drwxr-xr-x    1 root     root            0 Dec 31  1969 ../
crw-rw----    1 root     audio     14,  12 Dec 31  1969 adsp
crw-rw----    1 root     audio     14,   4 Dec 31  1969 audio
crw-rw----    1 root     audio     14,   3 Dec 31  1969 dsp
crw-rw----    1 root     audio     14,   0 Dec 31  1969 mixer
crw-rw----    1 root     audio     14,   1 Dec 31  1969 sequencer
crw-rw----    1 root     audio     14,   8 Dec 31  1969 sequencer2
18:54:27 >

You need the "pcmC0D0p" device for ALSA-native playback, and "dsp" for OSS-emulation playback.
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
gentoo-newbie
n00b
n00b


Joined: 18 Jan 2004
Posts: 60

PostPosted: Wed Jan 21, 2004 1:48 am    Post subject: Reply with quote

Thanks for the help. My windows partition is accessible now. Sound is the only thing left that I can't get working. I have support for my chipset enabled (at least, I'm pretty sure I do). Here is my /dev/snd:
Code:

drwxr-xr-x  1  root       root                 0   Jan   1  1970 ./
drwxr-xr-x  1  root       root                 0   Jan   1  1970 ../
crw-------  1  andrew     audio    116,        0   Jan   1  1970 controlCO
crw-------  1  andrew     audio    116,        1   Jan   1  1970 seq
crw-------  1  andrew     audio    116,        33 Jan    1  1970 timer

I'm not quite sure what to do....
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Wed Jan 21, 2004 4:39 am    Post subject: Reply with quote

well, "lspci -v" will tell you everything about your PCI devices, including a soundcard.

Are you loading the chipset driver module? I have an Intel 810 motherboard with integrated sound, so the module I load is "snd-intel8x0".
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
gentoo-newbie
n00b
n00b


Joined: 18 Jan 2004
Posts: 60

PostPosted: Wed Jan 21, 2004 4:57 am    Post subject: Reply with quote

It's an ALi Corporation M5451. I've got support for that configured in the kernel, do I have to do something else? I'm not really sure how to load a module...
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Wed Jan 21, 2004 5:11 am    Post subject: Reply with quote

If it's compiled as a module (and you're using ALSA), you'll have to "modprobe snd-ali5451". If you're using OSS, maybe it's "modprobe ali5451" ...
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
gentoo-newbie
n00b
n00b


Joined: 18 Jan 2004
Posts: 60

PostPosted: Thu Jan 22, 2004 3:12 am    Post subject: Reply with quote

Thanks! It's working! 8)
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Thu Jan 22, 2004 3:56 am    Post subject: Reply with quote

< little dance
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
gentoo-newbie
n00b
n00b


Joined: 18 Jan 2004
Posts: 60

PostPosted: Thu Jan 22, 2004 10:22 pm    Post subject: Reply with quote

I just rebooted, and it didn't work. I did "modprobe snd-ali5451" again, and it worked, but will i have to type that every time? Isn't there a way to autoload it or something?
Back to top
View user's profile Send private message
jetblack
Guru
Guru


Joined: 15 Jan 2003
Posts: 340
Location: Evanston, IL, USA

PostPosted: Thu Jan 22, 2004 10:34 pm    Post subject: Reply with quote

Just put an entry for it into /etc/modules.autoload.d/kernel-2.6 to have it automatically load on boot:

Code:
snd-ali5451
Back to top
View user's profile Send private message
gentoo-newbie
n00b
n00b


Joined: 18 Jan 2004
Posts: 60

PostPosted: Thu Jan 22, 2004 10:43 pm    Post subject: Reply with quote

Thsnks, you've been a big help. Nearly everything (minus the modem but I don't need that) is working now. 8)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum