LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Successfully build kernel 3.4.2, but now, Ubuntu 12.04 GUI is extremely slow. (https://www.linuxquestions.org/questions/linux-kernel-70/successfully-build-kernel-3-4-2-but-now-ubuntu-12-04-gui-is-extremely-slow-4175411690/)

jiapei100 06-15-2012 06:29 PM

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

TobiSGD 06-15-2012 06:40 PM

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.

jiapei100 06-15-2012 07:10 PM

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 (Post 4704436)
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.


TobiSGD 06-15-2012 07:20 PM

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.

jiapei100 06-15-2012 07:27 PM

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

TobiSGD 06-15-2012 07:44 PM

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

jiapei100 06-16-2012 02:33 PM

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

fogpipe 06-16-2012 03:11 PM

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.

jiapei100 06-16-2012 03:37 PM

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 (Post 4705067)
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.


TobiSGD 06-16-2012 06:18 PM

Quote:

Originally Posted by jiapei100 (Post 4705048)
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.

jiapei100 06-17-2012 04:12 PM

Quote:

Originally Posted by TobiSGD (Post 4705158)
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


All times are GMT -5. The time now is 06:34 PM.