Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Best kernel/kernel sources for a laptop?
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
Budoka
l33t
l33t


Joined: 03 Jun 2012
Posts: 777
Location: Tokyo, Japan

PostPosted: Tue Jun 24, 2014 4:57 am    Post subject: Best kernel/kernel sources for a laptop? Reply with quote

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
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Tue Jun 24, 2014 1:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Thu Jun 26, 2014 12:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Thu Jun 26, 2014 1:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
Nicias
Guru
Guru


Joined: 06 Dec 2005
Posts: 446

PostPosted: Thu Jun 26, 2014 3:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3494

PostPosted: Thu Jun 26, 2014 5:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Thu Jun 26, 2014 6:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Tractor Girl
Apprentice
Apprentice


Joined: 16 May 2013
Posts: 159

PostPosted: Thu Jun 26, 2014 10:39 pm    Post subject: Re: Best kernel/kernel sources for a laptop? Reply with quote

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
View user's profile Send private message
Budoka
l33t
l33t


Joined: 03 Jun 2012
Posts: 777
Location: Tokyo, Japan

PostPosted: Fri Jun 27, 2014 5:36 am    Post subject: Re: Best kernel/kernel sources for a laptop? Reply with quote

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


Quote:
# lspci -v |wgetpaste
Your paste can be seen here: http://bpaste.net/show/412154/
Back to top
View user's profile Send private message
Tractor Girl
Apprentice
Apprentice


Joined: 16 May 2013
Posts: 159

PostPosted: Fri Jun 27, 2014 1:04 pm    Post subject: Reply with quote

So it is hybrid graphic laptop.
Please show:
Code:
uname -a

Code:
cat /sys/kernel/debug/vgaswitcheroo/switch
Back to top
View user's profile Send private message
jimmij
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2008
Posts: 143

PostPosted: Thu Jul 03, 2014 9:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Nicias
Guru
Guru


Joined: 06 Dec 2005
Posts: 446

PostPosted: Thu Jul 03, 2014 9:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
jimmij
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2008
Posts: 143

PostPosted: Thu Jul 03, 2014 10:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Budoka
l33t
l33t


Joined: 03 Jun 2012
Posts: 777
Location: Tokyo, Japan

PostPosted: Wed Jul 09, 2014 1:56 am    Post subject: Reply with quote

Tractor Girl wrote:
So it is hybrid graphic laptop.
Please show:
Code:
uname -a

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
View user's profile Send private message
Tractor Girl
Apprentice
Apprentice


Joined: 16 May 2013
Posts: 159

PostPosted: Wed Jul 09, 2014 11:52 am    Post subject: Reply with quote

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

Code:
lsmod

Code:
mount | grep debug
Back to top
View user's profile Send private message
Budoka
l33t
l33t


Joined: 03 Jun 2012
Posts: 777
Location: Tokyo, Japan

PostPosted: Mon Jul 14, 2014 2:08 am    Post subject: Reply with quote

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

Code:
lsmod

Code:
mount | grep debug


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?

Quote:
$ lsmod |wgetpaste
Your paste can be seen here:[url] http://bpaste.net/show/461006/[/url]


$ mount | grep debug
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
Back to top
View user's profile Send private message
lordalbert
l33t
l33t


Joined: 26 Nov 2006
Posts: 840
Location: Italy

PostPosted: Sat Aug 02, 2014 8:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
Budoka
l33t
l33t


Joined: 03 Jun 2012
Posts: 777
Location: Tokyo, Japan

PostPosted: Sun Aug 03, 2014 3:25 am    Post subject: Reply with quote

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
View user's profile Send private message
lordalbert
l33t
l33t


Joined: 26 Nov 2006
Posts: 840
Location: Italy

PostPosted: Sun Aug 03, 2014 11:37 am    Post subject: Reply with quote

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
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