You are not logged in.

#226 2008-09-10 14:17:21

gothicknight
Member
From: Portugal
Registered: 2006-04-08
Posts: 219

Re: Acer Aspire One

ichbinesderelch wrote:

how about the cpufreq modules? howto compile the cpufreq modules for the kernelone?

is it also possible to enable CONFIG_DEBUG_KERNEL for more detailed powertop infos?

Cpufreq is already compiled in-kernel, no need for modules wink


I've really thought on enabling CONFIG_DEBUG_KERNEL but I wasn't sure that it's *really* needed. I've strip down the kernel as much as I know and by doing so, leaved it behind.

What I can do is another build with it enabled so everyone can see if there's really no difference, we can switch it back on smile


Edit: New build with debug enabled
Kernel: http://clientes.netvisao.pt/gtknight/ke … pkg.tar.gz
Kconfig: Kernel: http://clientes.netvisao.pt/gtknight/ke … nch/config

Last edited by gothicknight (2008-09-10 15:59:10)

Offline

#227 2008-09-10 19:41:24

zzats
Member
Registered: 2008-09-09
Posts: 6

Re: Acer Aspire One

gothicknight wrote:

AFAIK you can pass any module parameter to the kernel's command line using something like this as an example:

Passing snd_hda_intel.model=acer as a kernel option fixes the sound issue when suspending/resuming.

Has anyone got any ideas on how the ath_pci should be set up, how does black/whitelisting modules work in Arch, anyway?
Edit: This fellow has an interesting jmicron patch-idea
http://pagesperso-orange.fr/imarune/index_en.html

What does the overclocking (parts 4 and 5) sound like to you guys? smile

Last edited by zzats (2008-09-10 20:22:03)

Offline

#228 2008-09-10 22:08:53

gothicknight
Member
From: Portugal
Registered: 2006-04-08
Posts: 219

Re: Acer Aspire One

zzats, Seems interesting enough.
The I/O scheduler reflects the problems I'm having with firefox (still to use the FF tunning tips), although the usage of swap and ext3 in that tutorial is far from being the best approach.

Did you install the one with the CONFIG_DEBUG_KERNEL enabled, and notice any impact?

Last edited by gothicknight (2008-09-10 22:09:15)

Offline

#229 2008-09-11 07:18:31

thomasd
Member
Registered: 2008-08-11
Posts: 114

Re: Acer Aspire One

gothicknight wrote:

Edit: Updated the kernel version to 2.6.26.5
Link to the new kernel http://clientes.netvisao.pt/gtknight/ke … pkg.tar.gz
and the Kconfig used http://clientes.netvisao.pt/gtknight/Kconfig

I installed this version. The following problems occured:

- While booting, some errors from the Vesa FB appeared. Nevertheless the framebuffer worked fine. I use vga=789.
- The battery state info is no longer in /proc/acpi/battery. I use a script which reads this to inform me about the remaining capacity and this does not work now. I have no info about the remaining battery life.
- fuse does not work. Module not found. I think I will have to recompile it for the custom kernel, right?

The battery problem is crucial for me, so I switched back to the stock kernel.

Offline

#230 2008-09-11 08:01:11

thomasd
Member
Registered: 2008-08-11
Posts: 114

Re: Acer Aspire One

thomasd wrote:

- The battery state info is no longer in /proc/acpi/battery. I use a script which reads this to inform me about the remaining capacity and this does not work now. I have no info about the remaining battery life.

I just looked into your Kconfig and I suspect that these values may have disabled it:

# CONFIG_ACPI_PROCFS is not set
# CONFIG_ACPI_PROCFS_POWER is not set
# CONFIG_ACPI_PROC_EVENT is not set

Offline

#231 2008-09-11 08:12:15

gothicknight
Member
From: Portugal
Registered: 2006-04-08
Posts: 219

Re: Acer Aspire One

FUSE is compiled in-kernel, please remove the loading of the module, there's no need for it wink
ACPI files in /proc are deprecated you can have the same values from /sys/class/power_supply/BAT0/...
The VESA errors I've already known them, it's probably because they're trying to load after the intel framebuffer driver already been loaded, I need to check on them.

Today I'll recompile the kernel with deadline I/O scheduler support, sound drivers that are used that currently are compiled in modules will be passed to in-kernel and CONFIG_DEBUG_KERNEL enabled for powertop usage, I think that this is an important (debug?) tool.

Last edited by gothicknight (2008-09-11 08:12:45)

Offline

#232 2008-09-11 08:25:43

thomasd
Member
Registered: 2008-08-11
Posts: 114

Re: Acer Aspire One

gothicknight wrote:

FUSE is compiled in-kernel, please remove the loading of the module, there's no need for it wink
ACPI files in /proc are deprecated you can have the same values from /sys/class/power_supply/BAT0/...
The VESA errors I've already known them, it's probably because they're trying to load after the intel framebuffer driver already been loaded, I need to check on them.

Thanks for the info. If the Intel FB works, shouldn't it be possible to simply remove the Vesa FB from the kernel?

Offline

#233 2008-09-11 09:04:24

gothicknight
Member
From: Portugal
Registered: 2006-04-08
Posts: 219

Re: Acer Aspire One

I'm already on it... I'll have the kernel uploaded in 30min wink

Please, test this with care, at first I got some panic attacks, still to figure what happened, although seems to work just fine now.
Got a reduction from 2.1s to 1.6 in udev passing sound modules to in-kernel and removing more stuff from the kernel.

Keep in mind that this kernel is severly reduced and only made for booting as fast as possible with Aspire One hardware.
If you have an external device (TV card for example) you won't have drivers for it as is, for that you must recompile the kernel to fit your needs.


And here it is: http://clientes.netvisao.pt/gtknight/ke … pkg.tar.gz

Config: http://clientes.netvisao.pt/gtknight/ke … one/config
PKGBUILD: http://clientes.netvisao.pt/gtknight/ke … e/PKGBUILD

Last edited by gothicknight (2008-09-11 09:26:57)

Offline

#234 2008-09-11 09:49:49

ecraven
Member
Registered: 2008-04-30
Posts: 5

Re: Acer Aspire One

thanks for this blazing fast kernel! (just tried the one from 1104 today)
most things for for me (xfce4-battery-plugin doesn't, due to /proc/acpi/power missing, but that'll be upgraded soon i hope).
one other problem is the webcam. i can't find v4l-config in arch (what package is it in??), i have /dev/video0 (as a link to /dev/v4l/video0), but neither mplayer nor luvcview show anything:

[nex@onex ~]$ luvcview
luvcview version 0.2.1
Video driver: x11
A window manager is available
video /dev/video0
Unable to set format: 22.
Init v4L2 failed !! exit fatal

[nex@onex ~]$ luvcview -L
luvcview version 0.2.1
Video driver: x11
A window manager is available
video /dev/video0
/dev/video0 does not support read i/o
{ pixelformat = 'YUYV', description = 'YUV 4:2:2 (YUYV)' }
{ discrete: width = 640, height = 480 }
    Time interval between frame: 1/30, 1/15, 1/10,
{ discrete: width = 320, height = 240 }
    Time interval between frame: 1/30, 1/15, 1/10,
{ discrete: width = 160, height = 120 }
    Time interval between frame: 1/30, 1/15, 1/10,
{ discrete: width = 352, height = 288 }
    Time interval between frame: 1/30, 1/15, 1/10,
{ discrete: width = 176, height = 144 }
    Time interval between frame: 1/30, 1/15, 1/10,

"does not support read i/o"??
any suggestions?

Last edited by ecraven (2008-09-11 09:51:09)

Offline

#235 2008-09-11 10:28:22

gothicknight
Member
From: Portugal
Registered: 2006-04-08
Posts: 219

Re: Acer Aspire One

So it seems to be a good idea to compile with procFS acpi files...

I didn't compile them because there's a bug report saying that if there's a /proc and a /sys battery info, it's possible to have gnome-power-manager think that there's 2 batteries.

Offline

#236 2008-09-11 10:37:32

gothicknight
Member
From: Portugal
Registered: 2006-04-08
Posts: 219

Re: Acer Aspire One

ecraven wrote:

"does not support read i/o"??
any suggestions?

Here's the answer: http://gentoo-wiki.com/HP_Pavilion_tx2000#Webcam

luvcview -d /dev/video0 -f yuv

Offline

#237 2008-09-11 13:05:13

ecraven
Member
Registered: 2008-04-30
Posts: 5

Re: Acer Aspire One

thanks, the webcam now works too!
i'd suggest leaving the procfs part in until the major DEs work without it.
another question, i have followed the wiki for the extra function keys (volume, brightness etc.), is there a way to get the OSD that linpus uses working? the nice images and "progress bars" when changing volume and brightness?
brightness works (though it seems to be hardwired, works in BIOS and everywhere), volume control does not ;(

thanks again!

Offline

#238 2008-09-11 14:42:54

gothicknight
Member
From: Portugal
Registered: 2006-04-08
Posts: 219

Re: Acer Aspire One

Try this revision: http://clientes.netvisao.pt/gtknight/ke … pkg.tar.gz

I've only changed the ACPI /proc/acpi directory nothing else.

Offline

#239 2008-09-11 21:33:32

ecraven
Member
Registered: 2008-04-30
Posts: 5

Re: Acer Aspire One

works very well! thanks again!

it happens now and then when i reboot (been rebooting too often wink that the kernel hangs, caps lock blinks, and nothing is shown (quiet boot i believe). i am not sure how to get more information about this, and i'm not sure how to reproduce it ;(
another one, sound works well (with model=acer), but i can't get the microphone to work. should i set capture to mic or internal mic? does it even work with model=acer?

arch on the one rocks!

Last edited by ecraven (2008-09-11 21:57:02)

Offline

#240 2008-09-12 07:17:13

gothicknight
Member
From: Portugal
Registered: 2006-04-08
Posts: 219

Re: Acer Aspire One

ecraven, please remove the quiet parameter from the kernel's grub line on boot (using the E key) to see where's the hang in the kernel. It shouldn't happen, although I've removed so much from the kernel that I may have broken something important :$

My mic works fine... even without model=acer. But be aware that HDA intel driver is in kernel if you want to pass the parameter to the driver it has to be done or by sysctrl or by kernel's grub line parameter.

Offline

#241 2008-09-12 10:47:17

thomasd
Member
Registered: 2008-08-11
Posts: 114

Re: Acer Aspire One

gothicknight wrote:

ecraven, please remove the quiet parameter from the kernel's grub line on boot (using the E key) to see where's the hang in the kernel. It shouldn't happen, although I've removed so much from the kernel that I may have broken something important :$

My mic works fine... even without model=acer. But be aware that HDA intel driver is in kernel if you want to pass the parameter to the driver it has to be done or by sysctrl or by kernel's grub line parameter.

model=auto has been reported to enable the mic, I use that and it works fine. But suspend needs model=acer. See the Ubuntu wiki.

For me the latest kernel does not work. The framebuffer does not work (empty screen, blinking caps lock). Disabling the FB shows a kernel panic, that the root fs cannot be mounted.

Offline

#242 2008-09-12 10:56:11

gothicknight
Member
From: Portugal
Registered: 2006-04-08
Posts: 219

Re: Acer Aspire One

humm... So it has been confirmed that the latest Kconfig does create kernel panics.

I have a copy of a old config and this afternoon I'll recompile everything.

EDIT: This seems not to crash: http://clientes.netvisao.pt/gtknight/ke … pkg.tar.gz

Last edited by gothicknight (2008-09-12 13:51:53)

Offline

#243 2008-09-12 13:58:03

mikoro
Member
From: Espoo, Finland
Registered: 2007-03-27
Posts: 20
Website

Re: Acer Aspire One

gothicknight, it seems that all the links are broken?

Offline

#244 2008-09-12 14:03:37

gothicknight
Member
From: Portugal
Registered: 2006-04-08
Posts: 219

Re: Acer Aspire One

mikoro wrote:

gothicknight, it seems that all the links are broken?

Ups, here's the new URL: http://clientes.netvisao.pt/gtknight/ke … pkg.tar.gz

EDIT: My FTP is limited to 30MB so from time to time I have to delete older pkgs. So older links won't work sad

Last edited by gothicknight (2008-09-12 14:04:14)

Offline

#245 2008-09-12 15:18:07

mikoro
Member
From: Espoo, Finland
Registered: 2007-03-27
Posts: 20
Website

Re: Acer Aspire One

Thanks, could you put online the config and PKGBUILD file too?

Offline

#246 2008-09-12 15:35:27

gothicknight
Member
From: Portugal
Registered: 2006-04-08
Posts: 219

Re: Acer Aspire One

Offline

#247 2008-09-12 15:38:13

mikoro
Member
From: Espoo, Finland
Registered: 2007-03-27
Posts: 20
Website

Re: Acer Aspire One

Hmm, I get 404 with those links?

edit: works wink

Last edited by mikoro (2008-09-12 15:46:43)

Offline

#248 2008-09-12 15:47:03

gothicknight
Member
From: Portugal
Registered: 2006-04-08
Posts: 219

Re: Acer Aspire One

It's happening to me too... I'll check that later this day.

Right now it's time to get home from work }:>

Offline

#249 2008-09-12 18:07:54

zzats
Member
Registered: 2008-09-09
Posts: 6

Re: Acer Aspire One

gothicknight wrote:

zzats, Seems interesting enough.
Did you install the one with the CONFIG_DEBUG_KERNEL enabled, and notice any impact?

No, actually I didn't try that one, the option seems like a step backwards for me. I vote for a kernel without it, and I'd like to see the powertop-suggested optimizations listed from the people who tried it.

But I did have some trouble with ACPI and thermal monitoring, it's not a priority for me.

But for firefox optimizations, here's my acer one optimized firefox's prefs.js stripped from unneeded parts

The goal is to keep firefox running in the memory, without having to cache too much (see browser.cache.disk.enable) and have as minimal memory footprint as possible.

If you have upgraded the RAM, feel free to multiply the browser.cache.memory.capacity by at least two. config_trim_on_minimize might be the wrong setting in terms of browser stability, but I'm seriously looking for comments and additional optimizations, if anyone has them in mind.

user_pref("browser.blink_allowed", false);
user_pref("browser.cache.disk.enable", false);
user_pref("browser.cache.memory.capacity", "131702");
user_pref("browser.chrome.site_icons", false);
user_pref("browser.chrome.toolbar_tips", false);
user_pref("browser.migration.version", 1);
user_pref("browser.places.importBookmarksHTML", false);
user_pref("browser.places.importDefaults", false);
user_pref("browser.places.leftPaneFolderId", -1);
user_pref("browser.places.migratePostDataAnnotations", false);
user_pref("browser.places.smartBookmarksVersion", 1);
user_pref("browser.places.updateRecentTagsUri", false);
user_pref("browser.sessionhistory.max_entries", 20);
user_pref("browser.sessionhistory.max_total_viewers", 2);
user_pref("browser.sessionstore.max_tabs_undo", 4);
user_pref("browser.tabs.closeButtons", 3);
user_pref("browser.urlbar.maxRichResults", 1);
user_pref("config.trim_on_minimize", true);
user_pref("content.max.tokenizing.time", 22500000);
user_pref("extensions.checkCompatibility", false);
user_pref("extensions.checkUpdateSecurity", false);
user_pref("extensions.lastAppVersion", "3.0.1");
user_pref("extensions.update.notifyUser", false);
user_pref("layout.spellcheckDefault", 2);
user_pref("middlemouse.contentLoadURL", true);
user_pref("network.cookie.prefsMigrated", true);
user_pref("network.http.pipelining", true);
user_pref("network.http.pipelining.maxrequests", 40);
user_pref("network.http.proxy.pipelining", true);
user_pref("network.prefetch-next", false);
user_pref("security.dialog_enable_delay", 0);

Has anyone got the solution to the ath_pci and suspend issues?

Last edited by zzats (2008-09-12 18:08:17)

Offline

#250 2008-09-12 20:42:18

mikoro
Member
From: Espoo, Finland
Registered: 2007-03-27
Posts: 20
Website

Re: Acer Aspire One

I'm experiencing random freezes when using the hard drive. For example mkdir just took over 15 seconds to complete. I'm using even more stripped version of the gothicknight's kernel with noop scheduler. I probably should use another io scheduler or could it be something else?

Last edited by mikoro (2008-09-12 20:43:33)

Offline

Board footer

Powered by FluxBB