View previous topic :: View next topic |
Author |
Message |
Budoka l33t
Joined: 03 Jun 2012 Posts: 777 Location: Tokyo, Japan
|
Posted: Tue Jun 24, 2014 4:57 am Post subject: Best kernel/kernel sources for a laptop? |
|
|
Can anyone recommend the best kernel or kernel sources optimized for a laptop?
To date I have been using the Gentoo-sources but always have battery life and overheating issues.
I see there is Pappy's Kernel Seeds. Also the option of using the latest stable kernel from kernel.org or one of the many sources available in portage but I can't get a handle on if any are already tweaked for a laptop. |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Tue Jun 24, 2014 1:16 pm Post subject: |
|
|
Budoka ...
It depends mostly on what features you want/need (ie, Con Kolivas' BFS, TuxOnIce, etc) sometimes these are not included in the same sources so the choice may be limited to what you're prepared to accept from the package and/or patch yourself. Then there is the issue of what is enabled/disabled in that kernel (which is where kernel-seeds comes in).
For a laptop I'd recommend ck-sources, but again its somewhat dependent on what your needs are.
best ... khay |
|
Back to top |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Thu Jun 26, 2014 12:13 pm Post subject: |
|
|
I'd be inclined to use a gentoo-sources kernel and configure it carefully. I doubt you'll get better (or even different) results from other kernel sources.
Will |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Thu Jun 26, 2014 1:42 pm Post subject: |
|
|
cwr wrote: | I'd be inclined to use a gentoo-sources kernel and configure it carefully. I doubt you'll get better (or even different) results from other kernel sources. |
Will ... I wouldn't say that is the case, the use of BFS (ck-sources) in place of the default scheduler will IME improve interactive use for the desktop.
best ... khay |
|
Back to top |
|
|
Nicias Guru
Joined: 06 Dec 2005 Posts: 446
|
Posted: Thu Jun 26, 2014 3:50 pm Post subject: |
|
|
I've actually wondered this as well. I've been using tuxonice-sources, but I find it frustrating to have to manually pick which version to use. It seems like tuxonice kernels never move out of ~amd64.
How much of suspend-to-{ram/disk} functionality would I lose if I switched to gentoo-sources? |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3494
|
Posted: Thu Jun 26, 2014 5:15 pm Post subject: |
|
|
Quote: | How much of suspend-to-{ram/disk} functionality would I lose if I switched to gentoo-sources? | Suspend works fine on my box, never tried hibernation since I don't have swap there. On laptop it worked, then didn't work, then worked again....
With current kernel suspend works fine (wake-up hotkey is a bit weird though, Fn+power rater than either of those)
hibernation seems broken (it does not resume). I find it funny, as with debian it used to be the other way (hibernation was working fine, but I couldn't resume from suspend)
Also, MAYBE I could make it work if I tried. I haven't tried in gentoo.
I guess you should just get that kernel and try it yourself. |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Thu Jun 26, 2014 6:29 pm Post subject: |
|
|
Nicias wrote: | I've actually wondered this as well. I've been using tuxonice-sources, but I find it frustrating to have to manually pick which version to use. It seems like tuxonice kernels never move out of ~amd64. |
Nicias ... you can use any kernel and apply the upstream patch.
Nicias wrote: | How much of suspend-to-{ram/disk} functionality would I lose if I switched to gentoo-sources? |
Well, you wouldn't be using TuxOnIce ... which imo is better than the in kernel implimentation.
best ... khay |
|
Back to top |
|
|
Tractor Girl Apprentice
Joined: 16 May 2013 Posts: 159
|
Posted: Thu Jun 26, 2014 10:39 pm Post subject: Re: Best kernel/kernel sources for a laptop? |
|
|
Budoka wrote: |
To date I have been using the Gentoo-sources but always have battery life and overheating issues.
|
What laptop is it? Does it have hybrid graphic? Please show:
Code: | lspci | grep -i vga |
Also what is your default cpu scaling governor?
Code: | zgrep -i cpu_freq_default /proc/config.gz |
|
|
Back to top |
|
|
Budoka l33t
Joined: 03 Jun 2012 Posts: 777 Location: Tokyo, Japan
|
Posted: Fri Jun 27, 2014 5:36 am Post subject: Re: Best kernel/kernel sources for a laptop? |
|
|
Tractor Girl wrote: | Budoka wrote: |
To date I have been using the Gentoo-sources but always have battery life and overheating issues.
|
What laptop is it? Does it have hybrid graphic? Please show:
Code: | lspci | grep -i vga |
Also what is your default cpu scaling governor?
Code: | zgrep -i cpu_freq_default /proc/config.gz |
|
Quote: | # lspci | grep -i vga
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Seymour [Radeon HD 6400M/7400M Series]
|
Quote: | # zgrep -i cpu_freq_default /proc/config.gz
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
|
|
|
Back to top |
|
|
Tractor Girl Apprentice
Joined: 16 May 2013 Posts: 159
|
Posted: Fri Jun 27, 2014 1:04 pm Post subject: |
|
|
So it is hybrid graphic laptop.
Please show:
Code: | cat /sys/kernel/debug/vgaswitcheroo/switch |
|
|
Back to top |
|
|
jimmij Tux's lil' helper
Joined: 02 Dec 2008 Posts: 143
|
Posted: Thu Jul 03, 2014 9:49 pm Post subject: |
|
|
szatox wrote: | Quote: | How much of suspend-to-{ram/disk} functionality would I lose if I switched to gentoo-sources? | Suspend works fine on my box, never tried hibernation since I don't have swap there. On laptop it worked, then didn't work, then worked again....
With current kernel suspend works fine (wake-up hotkey is a bit weird though, Fn+power rater than either of those)
hibernation seems broken (it does not resume) |
Both suspend and hibernation works fine in my case with gentoo-sources or vanilla-sources.
Please note however that in kernel .config you need to set swap partition from which resume should take place:
Code: | -> Power management and ACPI options
(/dev/sda8) Default resume partition |
_________________ Vanitas vanitatum et omnia vanitas.
Libera temet ex inferis. |
|
Back to top |
|
|
Nicias Guru
Joined: 06 Dec 2005 Posts: 446
|
Posted: Thu Jul 03, 2014 9:54 pm Post subject: |
|
|
jimmij wrote: | szatox wrote: | Quote: | How much of suspend-to-{ram/disk} functionality would I lose if I switched to gentoo-sources? | Suspend works fine on my box, never tried hibernation since I don't have swap there. On laptop it worked, then didn't work, then worked again....
With current kernel suspend works fine (wake-up hotkey is a bit weird though, Fn+power rater than either of those)
hibernation seems broken (it does not resume) |
Both suspend and hibernation works fine in my case with gentoo-sources or vanilla-sources.
Please note however that in kernel .config you need to set swap partition from which resume should take place:
Code: | -> Power management and ACPI options
(/dev/sda8) Default resume partition |
|
Can you resume from a swapfile? |
|
Back to top |
|
|
jimmij Tux's lil' helper
Joined: 02 Dec 2008 Posts: 143
|
Posted: Thu Jul 03, 2014 10:16 pm Post subject: |
|
|
Nicias wrote: | jimmij wrote: | szatox wrote: | Quote: | How much of suspend-to-{ram/disk} functionality would I lose if I switched to gentoo-sources? | Suspend works fine on my box, never tried hibernation since I don't have swap there. On laptop it worked, then didn't work, then worked again....
With current kernel suspend works fine (wake-up hotkey is a bit weird though, Fn+power rater than either of those)
hibernation seems broken (it does not resume) |
Both suspend and hibernation works fine in my case with gentoo-sources or vanilla-sources.
Please note however that in kernel .config you need to set swap partition from which resume should take place:
Code: | -> Power management and ACPI options
(/dev/sda8) Default resume partition |
|
Can you resume from a swapfile? |
I have never tried, but don't see a reason why this shouldn't work.
In /usr/src/linux/Documentation/power/swsusp-and-swap-files.txt we read:
Code: | The Linux kernel handles swap files almost in the same way as it handles swap
partitions... |
_________________ Vanitas vanitatum et omnia vanitas.
Libera temet ex inferis. |
|
Back to top |
|
|
Budoka l33t
Joined: 03 Jun 2012 Posts: 777 Location: Tokyo, Japan
|
Posted: Wed Jul 09, 2014 1:56 am Post subject: |
|
|
Tractor Girl wrote: | So it is hybrid graphic laptop.
Please show:
Code: | cat /sys/kernel/debug/vgaswitcheroo/switch |
|
Quote: | $ uname -a
Linux TL_Samsung 3.12.21-gentoo-r1 #1 SMP Thu Jun 19 15:12:46 JST 2014 x86_64 Intel(R) Core(TM) i7-2675QM CPU @ 2.20GHz GenuineIntel GNU/Linux
|
I don't seem to have Quote: | sys/kernel/debug/vgaswitcheroo/ | on my system.
Thanks |
|
Back to top |
|
|
Tractor Girl Apprentice
Joined: 16 May 2013 Posts: 159
|
Posted: Wed Jul 09, 2014 11:52 am Post subject: |
|
|
Budoka wrote: |
I don't seem to have Quote: | sys/kernel/debug/vgaswitcheroo/ | on my system. |
Please post:
Code: | zgrep -i switcheroo /proc/config.gz |
|
|
Back to top |
|
|
Budoka l33t
Joined: 03 Jun 2012 Posts: 777 Location: Tokyo, Japan
|
Posted: Mon Jul 14, 2014 2:08 am Post subject: |
|
|
Tractor Girl wrote: | Budoka wrote: |
I don't seem to have Quote: | sys/kernel/debug/vgaswitcheroo/ | on my system. |
Please post:
Code: | zgrep -i switcheroo /proc/config.gz |
|
Hi. Sorry for the delay. I actually replied when you initially responded but just noticed it didn't save. Not sure why. Anyway...
Quote: | $ zgrep -i switcheroo /proc/config.gz
# CONFIG_VGA_SWITCHEROO is not set
|
I guess this means I should go back and recompile my kernel with this option?
$ mount | grep debug
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime) |
|
Back to top |
|
|
lordalbert l33t
Joined: 26 Nov 2006 Posts: 840 Location: Italy
|
Posted: Sat Aug 02, 2014 8:32 pm Post subject: |
|
|
vgaswitcheroo is for switch between discrete and integrated video card. Poweroff ati card, will increase battery life.
You need to compile the kernel with that option, install opensource ati driver (radeon) and install linux-firmware in order to have /sys/kernel/debug/vgaswitcheroo/switch file |
|
Back to top |
|
|
Budoka l33t
Joined: 03 Jun 2012 Posts: 777 Location: Tokyo, Japan
|
Posted: Sun Aug 03, 2014 3:25 am Post subject: |
|
|
lordalbert wrote: | vgaswitcheroo is for switch between discrete and integrated video card. Poweroff ati card, will increase battery life.
You need to compile the kernel with that option, install opensource ati driver (radeon) and install linux-firmware in order to have /sys/kernel/debug/vgaswitcheroo/switch file |
I'll give it a shot and report back. Thanks.
But can you tell me how to poweroff ATI Card? And What do I lose if i do so? |
|
Back to top |
|
|
lordalbert l33t
Joined: 26 Nov 2006 Posts: 840 Location: Italy
|
Posted: Sun Aug 03, 2014 11:37 am Post subject: |
|
|
Here a description how to use vgaswitcheroo: https://help.ubuntu.com/community/HybridGraphics
In disabling discrete card, you can't play some games, and don't know other limits... In my use (internet, programming, office) i have not problems or limitations... |
|
Back to top |
|
|
|