Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Alsa not working...
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
ax0nom
n00b
n00b


Joined: 28 Oct 2014
Posts: 14

PostPosted: Wed Oct 29, 2014 9:36 pm    Post subject: Reply with quote

Mmm I can't use any terminal... it just freezes when loading linux. Should I use a liveCD or something like that to use the commands?
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Wed Oct 29, 2014 10:14 pm    Post subject: Reply with quote

You say you use grub, and you say you use "make install" on your kernel.
when using "make install", it will not only copy your kernel but also backup the old one.

So you just have in grub to hit the "e" button (that's for grub "e"dit) and goes to the line where your kernel is and change the kernel to vmlinuz.old next to that hit the b key (that "b"oot for grub) and you will boot the previous kernel you had.

edit: just to make it clear: this is a temporary switch, if you reboot you have to redo that else it will just be the same as before, as this just change grub while it boot, and not change anything in your grub config file itself.
Also to make it even more clear :D Of course if it boot and you try to change your kernel and redo the "make install", the "new" vmlinuz.old will be the kernel that freeze, so make sure you backup vmlinuz.old before to keep a working kernel (or bet on your chance that the new kernel you have build will boot).
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43186
Location: 56N 3W

PostPosted: Wed Oct 29, 2014 10:25 pm    Post subject: Reply with quote

krinn,

If the kernels are different versions, that works. When they are the same version, you get the old kernel with the new modules.
Its harmless but can generate a lot of logspam when things are both built in and modules.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Wed Oct 29, 2014 10:30 pm    Post subject: Reply with quote

Nobody says i was never wrong :)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43186
Location: 56N 3W

PostPosted: Wed Oct 29, 2014 10:35 pm    Post subject: Reply with quote

krinn,

Oh its not wrong, but it may cloud the issue. Its one of the many ways of being right :)
It should deliver lspci and the kernel .config that we need.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Wed Oct 29, 2014 10:40 pm    Post subject: Reply with quote

NeddySeagoon wrote:
krinn,

Oh its not wrong, but it may cloud the issue. Its one of the many ways of being right :)
It should deliver lspci -k and the kernel .config that we need.


I was about to suggest lspci -k but when i quote you it just appears you asked lspci -k already. Must be me again!
Back to top
View user's profile Send private message
ax0nom
n00b
n00b


Joined: 28 Oct 2014
Posts: 14

PostPosted: Thu Oct 30, 2014 11:14 pm    Post subject: Reply with quote

Thanks both!

Booted again and here you are:

Kernel /.config

http://pastebin.com/embed_js.php?i=TVyaY220

Code:

lspci -k
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
        Subsystem: CLEVO/KAPOK Computer Device 1500
libkmod: kmod_config_parse: /etc/modprobe.d/alsa.conf line 17: ignoring bad line starting with 'OSS/Free'
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
        Kernel driver in use: pcieport
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
        Subsystem: CLEVO/KAPOK Computer Device 1500
        Kernel driver in use: i915
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
        Subsystem: CLEVO/KAPOK Computer Device 1500
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
        Subsystem: CLEVO/KAPOK Computer Device 1500
        Kernel driver in use: ehci-pci
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
        Subsystem: CLEVO/KAPOK Computer Device 1500
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
        Kernel driver in use: pcieport
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b5)
        Kernel driver in use: pcieport
00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 (rev b5)
        Kernel driver in use: pcieport
00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b5)
        Kernel driver in use: pcieport
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
        Subsystem: CLEVO/KAPOK Computer Device 1500
        Kernel driver in use: ehci-pci
00:1f.0 ISA bridge: Intel Corporation HM65 Express Chipset Family LPC Controller (rev 05)
        Subsystem: CLEVO/KAPOK Computer Device 1500
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 05)
        Subsystem: CLEVO/KAPOK Computer Device 1500
        Kernel driver in use: ahci
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)                                                                   
        Subsystem: CLEVO/KAPOK Computer Device 1500                                                                                                               
01:00.0 VGA compatible controller: NVIDIA Corporation GF106M [GeForce GT 555M] (rev a1)                                                                           
        Subsystem: CLEVO/KAPOK Computer Device 1500                                                                                                               
03:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 04)                                                                               
        Subsystem: CLEVO/KAPOK Computer Device 1500                                                                                                               
04:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter (rev 01)                                                           
        Subsystem: Realtek Semiconductor Co., Ltd. Device 9196                                                                                                   
        Kernel driver in use: rtl8192ce                                                                                                                           
05:00.0 Ethernet controller: JMicron Technology Corp. JMC250 PCI Express Gigabit Ethernet Controller (rev 05)                                                     
        Subsystem: CLEVO/KAPOK Computer Device 1500
        Kernel driver in use: jme
05:00.1 System peripheral: JMicron Technology Corp. SD/MMC Host Controller (rev 90)
        Subsystem: CLEVO/KAPOK Computer Device 1500
05:00.2 SD Host controller: JMicron Technology Corp. Standard SD Host Controller (rev 90)
        Subsystem: CLEVO/KAPOK Computer Device 1500
05:00.3 System peripheral: JMicron Technology Corp. MS Host Controller (rev 90)
        Subsystem: CLEVO/KAPOK Computer Device 1500
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43186
Location: 56N 3W

PostPosted: Thu Oct 30, 2014 11:46 pm    Post subject: Reply with quote

ax0nom,

Here is a starter
lspci:
libkmod: kmod_config_parse: /etc/modprobe.d/alsa.conf line 17: ignoring bad line starting with 'OSS/Free'

That should not be there.

Do you have a display connected to both of your graphics cards?
You have both drivers in the kernel?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ax0nom
n00b
n00b


Joined: 28 Oct 2014
Posts: 14

PostPosted: Fri Oct 31, 2014 1:03 am    Post subject: Reply with quote

Yes I use a monitor for the laptop when I'm home and I think both drivers are in kernel I also used an option for laptops with two graphic cards.

I also reverted the changes in kernel but it is still not booting.

I followed krinn's advice and backed up the working kernel. Is there a way to restore that kernel and delete the ones which are not booting?
Back to top
View user's profile Send private message
ax0nom
n00b
n00b


Joined: 28 Oct 2014
Posts: 14

PostPosted: Mon Nov 03, 2014 12:31 am    Post subject: Reply with quote

Hi I've been looking on how to make the previous kernel the default one and I didn't find how to do it?

Is it as simple as adding to grub an entry with the old kernel and deleting the new one?

Thank you.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Mon Nov 03, 2014 1:31 am    Post subject: Reply with quote

Here's my grub config so you can see how it work, example generally speak themselves better :
Code:
#
# Sample boot menu configuration file
#

# Boot automatically after 30 secs.
timeout 10

# By default, boot the first entry.
default 1

# Fallback to the second entry.
fallback 0

# Splash image to show behind grub.
splashimage=(hd0,1)/boot/grub/splash.xpm.gz

# For booting Windows NT or Windows95
#title Windows
#rootnoverify (hd0,0)
#makeactive
#chainloader  +1
# For loading DOS if Windows NT is installed
# chainload /bootsect.dos

# For booting Gentoo
title  Gentoo Linux
root (hd0,1)
kernel /vmlinuz root=/dev/sdb2

title Gentoo Previous
root (hd0,1)
kernel /vmlinuz.old root=/dev/sdb2

title Gentoo failsafe
root (hd0,1)
kernel /failsafe root=/dev/sdb2


Code:
LANG=C ls /boot -l
total 18033
-rw-r--r-- 1 root root 1141735 Apr  2  2014 System.map
-rw-r--r-- 1 root root 1129332 Sep  2  2012 System.map-3.4.7
-rw-r--r-- 1 root root 1141735 Apr  2  2014 System.map-3.4.85
-rw-r--r-- 1 root root 1129332 Sep  2  2012 System.map.old
lrwxrwxrwx 1 root root       1 Sep 23  2009 boot -> .
-rw-r--r-- 1 root root   89001 Apr  2  2014 config
-rw-r--r-- 1 root root   88502 Sep  2  2012 config-3.4.7
-rw-r--r-- 1 root root   89001 Apr  2  2014 config-3.4.85
-rw-r--r-- 1 root root   88502 Sep  2  2012 config.old
-rw-r--r-- 1 root root 2489216 Oct  2  2010 failsafe
-rw-r--r-- 1 root root  640543 Mar 29  2007 fbsplash-livecd-2006.1-1024x768
-rw-r--r-- 1 root root  470451 Apr 29  2008 fbsplash-livecd-2007.0-1024x768
drwxr-xr-x 2 root root    1024 Dec 14  2012 grub
drwx------ 2 root root   12288 Sep 23  2009 lost+found
-rw-r--r-- 1 root root 2476240 Apr  2  2014 vmlinuz
-rw-r--r-- 1 root root 2451808 Sep  2  2012 vmlinuz-3.4.7
-rw-r--r-- 1 root root 2476240 Apr  2  2014 vmlinuz-3.4.85
-rw-r--r-- 1 root root 2451808 Sep  2  2012 vmlinuz.old


Now if you build/rebuild a new kernel (say version 3.4.85 again) and do make install :
vmlinuz-3.4.85 will be overwrite with new kernel build
vmlinuz will become vmlinuz.old (this is why if your kernel doesn't work, you have to backup vmlinuz.old before rebuild a new one to not get in a dead end, see "failsafe" to avoid me trouble)
vmlinuz will be == vmlinuz-3.4.85
make install do that for vmlinuz, config and System.map as you can see, and you i do ls -l so you can see vmlinuz size match vmlinuz-3.4.85 (notice also they aren't symlink but copy). failsafe is just a vmlinuz that i know is working that i have sometimes update just with a "cp vmlinuz failsafe"
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43186
Location: 56N 3W

PostPosted: Mon Nov 03, 2014 4:36 pm    Post subject: Reply with quote

krinn,

Code:
# By default, boot the first entry.
default 1
but grub counts from 0 everywhere, so the comment does not describe what will happen here, unless readers count from 0 too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Mon Nov 03, 2014 5:29 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Code:
# By default, boot the first entry.
default 1
but grub counts from 0 everywhere, so the comment does not describe what will happen here, unless readers count from 0 too.
..in which case it's still the second entry. ;)
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Tue Nov 04, 2014 5:28 am    Post subject: Reply with quote

The comments in the file are the original ones (so they aren't mines)
So of course they might be only valid for the original grub.conf, and not the one i use :)
Back to top
View user's profile Send private message
ax0nom
n00b
n00b


Joined: 28 Oct 2014
Posts: 14

PostPosted: Wed Nov 05, 2014 3:02 am    Post subject: Reply with quote

I restored the last kernel working! Thank you all!

I built in the drivers and now all seems ok! Sound card is detected and the drivers work. I've got levels in alsamixer. And testing the speaker also works.

The only problem is that I've got no sound if I play a song or youtube video... it says the default device cannot be used. :cry:

Edit:

I managed to get sound in VLC but if I turn the volume up the sound starts to crack. I think it's a problem with the levels, if I turn the master up or down all is ok, but turning the level from the VLC the issue starts.

Playing sound on browser is still not working.

Thanks you. :wink:

Edit2:

OK! Finally everything is working! Thank you all for everything.

I solved the cracking issue and the browser sound following this guide:

http://www.alsa-project.org/main/index.php/Matrix:Module-hda-intel.

One last thing. If I wanted to build the drivers as module I just have to select the driver of the soundcard as a module or I should select more kernel options?

Thanks again!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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