LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 06-15-2012, 06:29 PM   #1
jiapei100
Member
 
Registered: Jan 2005
Location: Surrey, BC, Canada
Distribution: Ubuntu 12.04
Posts: 70

Rep: Reputation: 15
Successfully build kernel 3.4.2, but now, Ubuntu 12.04 GUI is extremely slow.


Hi, all:

I just successfully built kernel 3.4.2 and would like to play around with it. However, just right after I reboot Ubuntu 12.04 with the new kernel, GUIs become extremely slow. Even moving a prompt shell or a text editor window is unbearably slow.

Then, I doublechecked AMD Catalyst Control Centre (I'm using a AMD Radeon 8600 series video card). I happened to notice the Display Properties under Display Manager (
Quote:
AMDCatalyst Control Centre->Display Manager->Display Properties
) always pick up a resolution: Preferred (4000X4000), and Refresh Rate is always: Preferred (160Hz). And, unfortunately, I'm not able to change it.

Since what I built from the kernel are only 2 files:
initrd.img-3.4.2 and vmlinuz-3.4.2
I'm wondering if I need more files to configure the whole system?
Since I notice for my older kernels, there are at least
abi, config and System.map files under /boot

Quote:
peij@peij-Ubuntu:/boot$ ls
abi-3.2.0-25-generic memtest86+.bin
abi-3.2.0-25-generic-pae memtest86+_multiboot.bin
config-3.2.0-25-generic System.map-3.2.0-25-generic
config-3.2.0-25-generic-pae System.map-3.2.0-25-generic-pae
grub vmlinuz-3.2.0-25-generic
initrd.img-3.2.0-25-generic vmlinuz-3.2.0-25-generic-pae
initrd.img-3.2.0-25-generic-pae vmlinuz-3.4.2
initrd.img-3.4.2

Can anybody give me a hand?


Cheers
Pei
 
Old 06-15-2012, 06:40 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
You need to recompile the video driver's kernel module. This is done in the easiest way by installing the AMD driver from AMD's website. Of course you have to de-install the driver from the repository first.
Or you just de-install the driver from the repository and use the open-source driver as long as you are testing your kernel.
 
Old 06-15-2012, 07:10 PM   #3
jiapei100
Member
 
Registered: Jan 2005
Location: Surrey, BC, Canada
Distribution: Ubuntu 12.04
Posts: 70

Original Poster
Rep: Reputation: 15
It is very strange that Catalyst is not able to find my BenQ EW2420 monitor.
I just re-installed the drive (still from Ubuntu Software Centre), but even after rebooting, it still doesn't work. Now, I'm try to install AMD driver as the way you mentioned.

However, why the AMD driver defautly in Ubuntu Software Centre (Ubuntu repository) is not working for me right now? Is the one in current Ubuntu repository already compiled against some old kernel?


Cheers
Pei


Quote:
Originally Posted by TobiSGD View Post
You need to recompile the video driver's kernel module. This is done in the easiest way by installing the AMD driver from AMD's website. Of course you have to de-install the driver from the repository first.
Or you just de-install the driver from the repository and use the open-source driver as long as you are testing your kernel.

Last edited by jiapei100; 06-16-2012 at 01:15 AM.
 
Old 06-15-2012, 07:20 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
The driver should already be compiled against the normal Ubuntu kernel. If you build proper packages of your new kernel it may be possible that the DKMS system will automatically recompile a module for your new kernel, but I am not sure about that.
 
Old 06-15-2012, 07:27 PM   #5
jiapei100
Member
 
Registered: Jan 2005
Location: Surrey, BC, Canada
Distribution: Ubuntu 12.04
Posts: 70

Original Poster
Rep: Reputation: 15
Well, unfortunately, it seems ADM doesn't suppor Linux drivers any longer.
I can't even be able to select Linux here http://support.amd.com/us/Pages/AMDSupportHub.aspx

What can I do then?

Cheers
Pei
 
Old 06-15-2012, 07:44 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
AMD does support Linux, I can download and install the drivers. Are you sre that you haven't made the same mistake as in your first post? You most likely have a card from the HD6800-series, not the 8600 series.
Anyways, you can get the driver here: http://www2.ati.com/drivers/linux/am...x86.x86_64.run
 
Old 06-16-2012, 02:33 PM   #7
jiapei100
Member
 
Registered: Jan 2005
Location: Surrey, BC, Canada
Distribution: Ubuntu 12.04
Posts: 70

Original Poster
Rep: Reputation: 15
I was trying to install AMD Catalyst Driver 8.961, but got the following errors. Anyway, rebooting and have a try first... It seems the driver you afforded has not been successfully installed....


Quote:
Uninstalling any previously installed drivers.
Errors during DKMS module removal
Errors during DKMS module removal

Creating symlink /var/lib/dkms/fglrx/8.961/source ->
/usr/src/fglrx-8.961

DKMS: add completed.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area....
cd /var/lib/dkms/fglrx/8.961/build; sh make.sh --nohints --uname_r=3.4.2 --norootcheck....(bad exit status: 1)
[Error] Kernel Module : Failed to build fglrx-8.961 with DKMS
[Error] Kernel Module : Removing fglrx-8.961 from DKMS

------------------------------
Deleting module version: 8.961
completely from the DKMS tree.
------------------------------
Done.
[Reboot] Kernel Module : update-initramfs

Cheers
Pei
 
Old 06-16-2012, 03:11 PM   #8
fogpipe
Member
 
Registered: Mar 2011
Distribution: Slackware 64 -current,
Posts: 550

Rep: Reputation: 196Reputation: 196
About the System.map file, it should be located where the booting kernel can find it. Copy it to /boot (or the same directory as the kernel image) and append the version number of the kernel to it.

http://en.wikipedia.org/wiki/System.map

"After building the Linux kernel, System.map is located in the root of the source directory. However, some further software installation steps expect to locate the file elsewhere:

as /boot/System.map-$(uname -r)"

IIRC you should find the new System.map in the top dir of your kernel build.

Last edited by fogpipe; 06-16-2012 at 03:12 PM.
 
Old 06-16-2012, 03:37 PM   #9
jiapei100
Member
 
Registered: Jan 2005
Location: Surrey, BC, Canada
Distribution: Ubuntu 12.04
Posts: 70

Original Poster
Rep: Reputation: 15
Thank you so much fogpipe ! Thanks...

1) I found System.map just under the my downloaded source folder, say the folder also containing the produced file "vmlinux". And now, I copied it under /boot
2) I also copied ".config" under the same linux kernel source folder to /boot

The only thing I don't have now is the "abi" file. For this file, I just
Code:
cp /boot/abi-3.2.0-25-generic /boot/abi-3.4.2
Don't know if this is correct.

The weird thing continues: The ATI Catalyst now seems to be able to find my monitor, but after a re-configuration (I know set a Full HD with 60 FPS), I was suggested to restart the machine. However, rebooting only re-sets the configuration back to 4000X4000 at 160 FPS.

What can I do???

depressed...
Pei






Quote:
Originally Posted by fogpipe View Post
About the System.map file, it should be located where the booting kernel can find it. Copy it to /boot (or the same directory as the kernel image) and append the version number of the kernel to it.

http://en.wikipedia.org/wiki/System.map

"After building the Linux kernel, System.map is located in the root of the source directory. However, some further software installation steps expect to locate the file elsewhere:

as /boot/System.map-$(uname -r)"

IIRC you should find the new System.map in the top dir of your kernel build.
 
Old 06-16-2012, 06:18 PM   #10
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by jiapei100 View Post
I was trying to install AMD Catalyst Driver 8.961, but got the following errors. Anyway, rebooting and have a try first... It seems the driver you afforded has not been successfully installed....





Cheers
Pei
Sorry, forgot about that. If you run a 32 bit system and a kernel newer then 3.2.7 you have to patch the driver, or you use the Catalyst 12.6 Beta driver.

Last edited by TobiSGD; 06-16-2012 at 06:19 PM.
 
Old 06-17-2012, 04:12 PM   #11
jiapei100
Member
 
Registered: Jan 2005
Location: Surrey, BC, Canada
Distribution: Ubuntu 12.04
Posts: 70

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by TobiSGD View Post
Sorry, forgot about that. If you run a 32 bit system and a kernel newer then 3.2.7 you have to patch the driver, or you use the Catalyst 12.6 Beta driver.
Hi, Thanks TobiSGD.
I tried Catalyst 12.6 Beta driver as you mentioned, but still got the same errors. (pictures' link attached.)
Yes, I'm now working under kernel 3.4.2 already, and my machine is 64 bits, but I'm using a 32 bit Ubuntu. So, I've got to use the patched driver as you mentioned. But, still, the problem continues.

http://www.visionopen.com/questions/...rfailure01.png
http://www.visionopen.com/questions/...rfailure02.png
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Any one can build a ubuntu UML rootfs successfully ? 5883 Linux - Virtualization and Cloud 1 11-26-2011 08:01 AM
IBM T42 "Extremely, EXTREMELY Slow" alwayslearning Linux - Laptop and Netbook 5 10-11-2009 03:34 AM
Ubuntu installer extremely slow... bastawhiz Ubuntu 7 06-18-2006 11:04 AM
build kernel with only text mode no GUI pradeep.vinesh Linux - Newbie 1 06-27-2005 02:26 AM
sdl games are slow extremely slow linksocc Linux - Software 7 01-17-2004 03:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 08:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration