[gentoo-user] cpufrequtils can't find expected /sys/devices/system/cpu/cpufreq
I'm finishing up on installing Gentoo on a laptop. I tried testing cpufrequtils, and ran into problems... [aa1][root][/usr/src/linux] /etc/init.d/cpufrequtils start * Caching service dependencies ... [ ok ] * Running cpufreq-set --governor conservative -- ... /usr/libexec/cpufrequtils-change.sh: line 26: cd: /sys/devices/system/cpu/cpufreq: No such file or directory [ !! ] * ERROR: cpufrequtils failed to start I found some promising-looking threads on forums.gentoo.org, but the forum gives... phpBB : Critical Error Could not connect to the database ...so that wasn't any help. Am I missing some kernel setting? Note that I'me running mdev instead of udev. Could that be the problem? -- Walter Dnes waltd...@waltdnes.org I don't run desktop environments; I run useful applications
Re: [gentoo-user] cpufrequtils can't find expected /sys/devices/system/cpu/cpufreq
On Thu, 24 Apr 2014 02:27:05 -0400, Walter Dnes wrote: [aa1][root][/usr/src/linux] /etc/init.d/cpufrequtils start * Caching service dependencies ... [ ok ] * Running cpufreq-set --governor conservative -- ... /usr/libexec/cpufrequtils-change.sh: line 26: cd: /sys/devices/system/cpu/cpufreq: No such file or directory [ !! ] * ERROR: cpufrequtils failed to start I get a similar message, it appears to be looking in the wrong place. /sys/devices/system/cpu/cpufreq does not exist but /sys/devices/system/cpu/cpu{0..3}/cpufreq do -- Neil Bothwick Engineers do it with less resistance. signature.asc Description: PGP signature
Re: [gentoo-user] cpufrequtils can't find expected /sys/devices/system/cpu/cpufreq
On Thursday 24 April 2014 10:13:39 Neil Bothwick wrote: On Thu, 24 Apr 2014 02:27:05 -0400, Walter Dnes wrote: [aa1][root][/usr/src/linux] /etc/init.d/cpufrequtils start * Caching service dependencies ... [ ok ] * Running cpufreq-set --governor conservative -- ... /usr/libexec/cpufrequtils-change.sh: line 26: cd: /sys/devices/system/cpu/cpufreq: No such file or directory [ !! ] * ERROR: cpufrequtils failed to start I get a similar message, it appears to be looking in the wrong place. /sys/devices/system/cpu/cpufreq does not exist but /sys/devices/system/cpu/cpu{0..3}/cpufreq do Strange, on my system it does exist: # ls -lsa /sys/devices/system/cpu/cpufreq* total 0 0 drwxr-xr-x 2 root root0 Apr 24 11:19 . 0 drwxr-xr-x 10 root root0 Apr 24 07:06 .. 0 -r--r--r-- 1 root root 4096 Apr 24 11:19 boost along with the cpu{0..3} options. When going through the CPUFREQ options in menuconfig, the following option mentions a boost entry: ** CONFIG_X86_ACPI_CPUFREQ_CPB: The powernow-k8 driver used to provide a sysfs knob called cpb to disable the Core Performance Boosting feature of AMD CPUs. This file has now been superseeded by the more generic boost entry. By enabling this option the acpi_cpufreq driver provides the old entry in addition to the new boost ones, for compatibility reasons. Symbol: X86_ACPI_CPUFREQ_CPB [=y] Type : boolean Prompt: Legacy cpb sysfs knob support for AMD CPUs * -- Joost
[gentoo-user] Re: cpufrequtils can't find expected /sys/devices/system/cpu/cpufreq
On Thu, 24 Apr 2014 10:13:39 +0100, Neil Bothwick wrote: On Thu, 24 Apr 2014 02:27:05 -0400, Walter Dnes wrote: [aa1][root][/usr/src/linux] /etc/init.d/cpufrequtils start * Caching service dependencies ... [ ok ] * Running cpufreq-set --governor conservative -- ... /usr/libexec/cpufrequtils-change.sh: line 26: cd: /sys/devices/system/cpu/cpufreq: No such file or directory [ !! ] * ERROR: cpufrequtils failed to start I get a similar message, it appears to be looking in the wrong place. /sys/devices/system/cpu/cpufreq does not exist but /sys/devices/system/cpu/cpu{0..3}/cpufreq do It depends on the CPU frequency governor. If CONFIG_X86_INTEL_PSTATE is set and active (depending on your CPU model), the traditional governors (like ondemand) and their correspondig sysfs entries are disabled. For example I have the former (cpufreq) entry on my old core2 laptop, but no such entry on my machines with i5/i7 with pstate despite the same 3.12.x kernel everywhere. Generally pstate is much better than ondemand for both performance and especially powersave mode. Also AFAIK cpufrequtils are unmaintained/deprecated/dead, you should migrate to sys-power/cpupower. It's slightly different but IIRC easy to switch to. -h
Re: [gentoo-user] cpufrequtils can't find expected /sys/devices/system/cpu/cpufreq
On Thu, 24 Apr 2014 11:28:34 +0200, Joost Roeleveld wrote: /sys/devices/system/cpu/cpufreq does not exist but /sys/devices/system/cpu/cpu{0..3}/cpufreq do Strange, on my system it does exist: When going through the CPUFREQ options in menuconfig, the following option mentions a boost entry: ** CONFIG_X86_ACPI_CPUFREQ_CPB: The powernow-k8 driver used to provide a sysfs knob called cpb to disable the Core Performance Boosting feature of AMD CPUs. This file has now been superseeded by the more generic boost entry. By enabling this option the acpi_cpufreq driver provides the old entry in addition to the new boost ones, for compatibility reasons. I don't have the directory even on systems with this kernel option enabled, it must be something else. -- Neil Bothwick Press Return to Continue - known as The Mail Menupause. signature.asc Description: PGP signature
Re: [gentoo-user] Re: cpufrequtils can't find expected /sys/devices/system/cpu/cpufreq
On Thu, Apr 24, 2014 at 09:35:27AM +, Holger Hoffstätte wrote It depends on the CPU frequency governor. If CONFIG_X86_INTEL_PSTATE is set and active (depending on your CPU model), the traditional governors (like ondemand) and their correspondig sysfs entries are disabled. For example I have the former (cpufreq) entry on my old core2 laptop, but no such entry on my machines with i5/i7 with pstate despite the same 3.12.x kernel everywhere. Generally pstate is much better than ondemand for both performance and especially powersave mode. It's an old AMD dual-core cpu (from /proc/cpuinfo) vendor_id : AuthenticAMD cpu family : 16 model : 6 model name : AMD Athlon(tm) II P320 Dual-Core Processor stepping: 3 microcode : 0x1b6 Also AFAIK cpufrequtils are unmaintained/deprecated/dead, you should migrate to sys-power/cpupower. It's slightly different but IIRC easy to switch to. Thanks. I've got it working. I prefer the conservative governor, which doesn't jump around as much. Both cores now show... maximum transition latency: 4.0 us. hardware limits: 800 MHz - 2.10 GHz available frequency steps: 2.10 GHz, 1.50 GHz, 800 MHz available cpufreq governors: ondemand, userspace, powersave, conservative, performance current policy: frequency should be within 800 MHz and 2.10 GHz. The governor conservative may decide which speed to use within this range. current CPU frequency is 800 MHz (asserted by call to hardware). -- Walter Dnes waltd...@waltdnes.org I don't run desktop environments; I run useful applications
Re: [gentoo-user] cpufrequtils can't find expected /sys/devices/system/cpu/cpufreq
cpufreqd, cpufrequtils are both dead packages for years now, it's propably cpupower you want instead, the only package getting updated for constantly changing paths in /sys On 24/04/14 09:27, Walter Dnes wrote: I'm finishing up on installing Gentoo on a laptop. I tried testing cpufrequtils, and ran into problems... [aa1][root][/usr/src/linux] /etc/init.d/cpufrequtils start * Caching service dependencies ... [ ok ] * Running cpufreq-set --governor conservative -- ... /usr/libexec/cpufrequtils-change.sh: line 26: cd: /sys/devices/system/cpu/cpufreq: No such file or directory [ !! ] * ERROR: cpufrequtils failed to start I found some promising-looking threads on forums.gentoo.org, but the forum gives... phpBB : Critical Error Could not connect to the database ...so that wasn't any help. Am I missing some kernel setting? Note that I'me running mdev instead of udev. Could that be the problem?
[gentoo-user] More emerge oddity in chroot
Hello list, I'm wearying of this chroot operation, and I must be sounding like a tyro. The other day emerge started hanging at the end of compilation, thus: # emerge -1 apache-tools [,,,] make[1]: Leaving directory `/var/tmp/portage/app-admin/apache- tools-2.2.25/work/httpd-2.2.25/support' Source compiled. * Skipping make test/check due to ebuild restriction. Test phase [disabled because of RESTRICT=test]: app-admin/apache- tools-2.2.25 Install apache-tools-2.2.25 into /var/tmp/portage/app-admin/apache- tools-2.2.25/image/ category app-admin make[1]: Entering directory `/var/tmp/portage/app-admin/apache- tools-2.2.25/work/httpd-2.2.25/support' mkdir /var/tmp/portage/app-admin/apache-tools-2.2.25/image/usr mkdir /var/tmp/portage/app-admin/apache-tools-2.2.25/image/usr/sbin make[1]: Leaving directory `/var/tmp/portage/app-admin/apache- tools-2.2.25/work/httpd-2.2.25/support' Completed installing apache-tools-2.2.25 into /var/tmp/portage/app- admin/apache-tools-2.2.25/image/ strip: i686-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line -R .note.gnu.gold-version usr/sbin/htpasswd usr/sbin/ab usr/sbin/rotatelogs usr/sbin/logresolve usr/sbin/htdigest usr/sbin/htdbm usr/sbin/htcacheclean usr/sbin/httxt2dbm usr/sbin/checkgid Done. It never comes back from there, not even with a CTRL-C; I have to kill -9 from another Konsole. Grepping ps for emerge (before the kill!) shows: 20749 pts/1DN+0:03 /usr/bin/python3 /usr/bin/emerge --nospinner -1 apache-tools Man ps says that the D means uninterruptible sleep (usually IO) So far I've done these things: 1. Wiped the whole system and restored from backup (heavy overkill, but I wanted everything to be in the same, consistent state). 2. Run bad-blocks tests on all partitions (though all but / and /boot are in logical volumes - I don't know to what extent that will have affected the results). 3. Remerged portage. 4. Recompiled the kernel, 3.12.13. 5. Booted previous good kernel,3.10.32. 6. Emerged natively on the Atom box for which the chroot is a build host. At various stages I got bizarreness like the kernel panicking at boot on a previously good kernel config, before it even switched to the frame buffer; or, during shutdown, exiting from KVM or some such, even though I've never used KVM. Portage works fine outside the chroot and is at the same version, 2.2.8-r1. It has python3 set in package.use in both cases, so I also tried: 7. Removed python3 USE flag from sys-apps/portage. Is my hardware dying? Or maybe I am. Time to seek intelligent conversation down the pub. :-( -- Regards Peter
Re: [gentoo-user] problems with usb audio and midi
On Thursday 24 Apr 2014 03:47:35 luis jure wrote: i have an internal pci card (m-audio 2496) that works fine on my gentoo machine, but i'm having problems with usb audio cards and midi devices. [snip ...] difference i see is that gentoo uses uhci_hcd, while xubuntu uses ohci-pci, not that i know what that means... It means USB-1.1 as defined by AMD (I think). lspci | grep OHCI should show if you need it. i would appreciate any help. here is the result of zcat /proc/config.gz | grep -i usb [snip ...] CONFIG_USB_OHCI_HCD=y CONFIG_USB_OHCI_HCD_PCI=y # CONFIG_USB_OHCI_HCD_PLATFORM is not set Try enabling the last module above and see what you get. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] problems with usb audio and midi
thanks for your answer! actually, i just realized that it's working now. unfortunately i don't know what of all the things i've been trying made the difference... $ cat /proc/asound/cards 0 [M2496 ]: ICE1712 - M Audio Audiophile 24/96 M Audio Audiophile 24/96 at 0xec00, irq 16 1 [CODEC ]: USB-Audio - USB Audio CODEC Burr-Brown from TI USB Audio CODEC at usb-:00:1a.1-2, full speed 2 [nanoKONTROL2 ]: USB-Audio - nanoKONTROL2 KORG INC. nanoKONTROL2 at usb-:00:1a.1-1, full speed the usb audio card is working. the midi controllers, on the other hand, although recognized by the system, are not seen by the midi sequencers i tried (rosegarden and qtractor). i'll have to investigate more, because it's the midi controllers what i'm interested in. It means USB-1.1 as defined by AMD (I think). lspci | grep OHCI should show if you need it. mmm... lspci | grep OHCI gives nothing, so i guess i'll disable these modules in the kernel. thanks again, and if anyone knows how i could actually use those midi controllers, i would appreciate any help. lj
Re: [gentoo-user] cpufrequtils can't find expected /sys/devices/system/cpu/cpufreq
On Thu, 24 Apr 2014 02:27:05 -0400 Walter Dnes waltd...@waltdnes.org wrote: I'm finishing up on installing Gentoo on a laptop. I tried testing cpufrequtils, and ran into problems... [aa1][root][/usr/src/linux] /etc/init.d/cpufrequtils start * Caching service dependencies ... [ ok ] * Running cpufreq-set --governor conservative -- ... /usr/libexec/cpufrequtils-change.sh: line 26: cd: /sys/devices/system/cpu/cpufreq: No such file or directory [ !! ] * ERROR: cpufrequtils failed to start I haven't tried this myself but I believe you need CPU_FREQ_DEFAULT_GOV_USERSPACE kernel config. And I guess this is the ultimate reference: https://www.kernel.org/doc/Documentation/cpu-freq/index.txt --- Jan Matějka| Developer https://gentoo.org | Gentoo Linux GPG: A33E F5BC A9F6 DAFD 2021 6FB6 3EBF D45B EEB6 CA8B signature.asc Description: PGP signature
Re: [gentoo-user] More emerge oddity in chroot
140424 Peter Humphrey wrote: I'm wearying of this chroot operation, and I must be sounding like a tyro. The other day emerge started hanging at the end of compilation, thus: # emerge -1 apache-tools -- details snipped -- Completed installing apache-tools-2.2.25 into /var/tmp/portage/app- -- details snipped -- Done. It never comes back from there, not even with a CTRL-C; I have to kill -9 from another Konsole. Grepping ps for emerge (before the kill!) shows: 20749 pts/1DN+0:03 /usr/bin/python3 /usr/bin/emerge --nospinner -1 apache-tools Man ps says that the D means uninterruptible sleep (usually IO) Is my hardware dying ? It looks like hardware : how old is it ? what is its record ? -- ,, SUPPORT ___//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT`-O--O---' purslowatchassdotutorontodotca
[gentoo-user] Re: cpufrequtils can't find expected /sys/devices/system/cpu/cpufreq
yac yac at gentoo.org writes: I'm finishing up on installing Gentoo on a laptop. I tried testing cpufrequtils, and ran into problems... I haven't tried this myself but I believe you need CPU_FREQ_DEFAULT_GOV_USERSPACE kernel config. And I guess this is the ultimate reference: https://www.kernel.org/doc/Documentation/cpu-freq/index.txt Well, for sure I have not kept up with all these issues. But some kernel versions ago, there was heavy work on the I/O and various schedulers, memory management etc etc. All of these settings effect the processor(s) speeds, idle etc. I started reading about overclocking my FX-8350 after I got the water cooler installed and realize about a year ago, many, many things have changed. So I guess what I'm saying is this subject get's very complicated very quick, with lots of new options for performance tuning on a system. I'd read up a bit and find similar things that folks have done to optimize a workstation (laptop) for speed or economy (power consumption) and start with that before tweaking and testing the myriad of things that can effect your system's overall performance. On laptops, some graphics hardware can be put to sleep for substantial power savings, along with tricks on HD operations.. Surely monitoring the cpu temerpatures is the best place to start, but there is so much more to tune now, kernel and otherwise. Arch Linux has some nice docs that may get your research going: https://wiki.archlinux.org/index.php/CPU_frequency_scaling https://wiki.archlinux.org/index.php/maximizing_performance hth, James
Re: [gentoo-user] problems with usb audio and midi
On Thursday 24 Apr 2014 17:32:25 luis jure wrote: lspci | grep OHCI should show if you need it. mmm... lspci | grep OHCI gives nothing, so i guess i'll disable these modules in the kernel. Oops! I gave a bum steer, my apologies! I meant to have typed: lspci -v | grep -i OHCI As an example, this is what my firewire is using: # lspci -v | grep -i OHCI 09:00.3 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 PCIe IEEE 1394 Controller (rev 01) (prog-if 10 [OHCI]) Kernel driver in use: firewire_ohci Kernel modules: firewire_ohci HTH. -- Regards, Mick signature.asc Description: This is a digitally signed message part.