[SOLVED] Awesome's not loading
I did some updates and now I awesome won't start, giving this output instead
awesome: error while loading shared libraries: libev.so.3: cannot open shared object file: No such file or directory
After a bit of googling I found this to be a pretty common error, which just requires to recompile awesome, so I reinstalled awesome from the AUR. Since that didn't solve the problem, I tried getting rid of libev and insalling awesome. It installed just fine, but I still got the same error. I also tried awesome-git but with the same result.
I guess I'm doing something wrong since this is fixed for most people by just compiling awesome again but after a few hours of tinkering I don't seem to find what it is.
Any help would be greatly appreciated.
Last edited by Macdelaney (2010-12-17 04:13:05)
First of all thanks for your reply.
I do have Libev 4.01-1 and it-s in /usr/lib/libev.so.4 too.
I've removed awesome with yaourt -Rns, then cleared the cache from not installed packaged, and installed awesome again. I repeated this for awesome-git just in case, but the same thing happens. I downloaded the package from the AUR manually and then installed, again, same thing happens.
I must be missing something stupidly obvious, but I can't put my finger in it.
Again, any help would be greatly appreciated.
EDIT: A simple whereis awesome showed that /usr/local/bin/awesome existed, apparently I did this at some point (don't really remember). Running /usr/bin/awesome everything works great.
So yes, pretty stupid on my part!
Last edited by Macdelaney (2010-12-17 04:12:38)
Similar Messages
-
[Solved] Menu Editor not loading.
I installed py solitaire, it didn't show up in the list. I tried to open up the menu editor, and that will not load either. I have fam and alacarte installed, and I am not sure what is wrong. Any help would be greatly appreciated.
Edit: alacarte will not run as a normal user, only as root. Is this normal?
Last edited by perlluver (2008-02-24 21:45:37)perlluver wrote:
I installed py solitaire, it didn't show up in the list. I tried to open up the menu editor, and that will not load either. I have fam and alacarte installed, and I am not sure what is wrong. Any help would be greatly appreciated.
Edit: alacarte will not run as a normal user, only as root. Is this normal?
Ok I ran menu editor from the terminal and I got this message:
** (gmenu-simple-editor:7417): WARNING **: Failed to add monitor on '/home/perlluver/.config/menus/applications.menu': Permission denied
** (gmenu-simple-editor:7417): WARNING **: Failed to add monitor on '/home/perlluver/.config/menus/applications-merged': Permission denied
** (gmenu-simple-editor:7417): WARNING **: Failed to add monitor on '/home/perlluver/.config/menus/settings.menu': Permission denied
** (gmenu-simple-editor:7417): WARNING **: Failed to add monitor on '/home/perlluver/.config/menus/settings-merged': Permission denied
** (gmenu-simple-editor:7417): WARNING **: Failed to add monitor on '/home/perlluver/.config/menus/preferences-merged': Permission denied -
[solved] TV card not loaded after upgrade to kmod
After the upgrade to mkinitcpio and kmod replacing module-init-tools, my TV card (Hauppauge WinTV Nova-S) is not loaded.
Downgrading mkinitcpio and re-installing module-init-tools and regenerating my initramfs and all is well.
Is there any extra setup needed with kmod? There are no man files in the kmod package so I'm at a loss what to do.
Incase it helps, here are (maybe not all) the modules related to my tv card when downgraded:
-->lsmod | grep dvb
cx88_dvb 23415 39
cx88_vp3054_i2c 1932 1 cx88_dvb
videobuf_dvb 4794 1 cx88_dvb
dvb_core 92868 2 cx88_dvb,videobuf_dvb
cx8802 13121 1 cx88_dvb
cx88xx 73365 4 cx88_dvb,cx88_alsa,cx8800,cx8802
videobuf_dma_sg 7936 5 cx88_dvb,cx88_alsa,cx8800,cx8802,cx88xx
videobuf_core 15879 5 videobuf_dvb,cx8800,cx8802,cx88xx,videobuf_dma_sg
i2c_core 20492 15 isl6421,cx24123,wm8775,cx88_dvb,cx88_vp3054_i2c,cx8800,cx88xx,tveeprom,v4l2_common,videodev,i2c_piix4,nouveau,drm_kms_helper,drm,i2c_algo_bit
Last edited by fastfret79 (2012-01-10 22:29:35)Yes - initramfs regenerated after each upgrade and downgrade.
Forgot to mention I was also suffering from the 'Filename too long' FS#27862 and your updated kmod in that bug's comments fixed that. I'm guessing that my issue is unrelated.
With both kmod packages, initramfs complains that /etc/modprobe.d/modprobe.conf doesn't exist, but I've never added anything in there anyway and the kmod package doesn't contain that file.
Last edited by fastfret79 (2012-01-10 11:53:07) -
[Solved] Synaptics driver not loaded
Recently im getting
Couldn't find synaptics properties. No synaptics driver loaded?
when I run synclient
Touchpad still works but the synaptics driver is apparently not loaded. I have xf86-input-synaptics installed.
I can't figure out how to load the synaptics driver.
Last edited by Mythreya (2015-03-10 12:45:34)This started after an update about a week ago. It was working perfectly fine with no effort before. I have an elantech touchpad.
$ xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ ETPS/2 Elantech Touchpad id=17 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Video Bus id=8 [slave keyboard (3)]
↳ Power Button id=9 [slave keyboard (3)]
↳ Sleep Button id=10 [slave keyboard (3)]
↳ ASUS USB2.0 Webcam id=14 [slave keyboard (3)]
↳ Asus WMI hotkeys id=15 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=16 [slave keyboard (3)]
↳ USB Keyboard id=11 [slave keyboard (3)]
↳ USB Keyboard
I've mostly found ubuntu forums with the issue, they all linked to the debian wiki on synaptics which didn't help much. Even the allmighty archwiki had no troubleshooting instructions for synaptics.
Last edited by Mythreya (2015-03-06 18:12:37) -
[SOLVED]Custom DSDT not loading - OEM battery doesn't work - Sony Vaio
EDITING ORIGINAL POST TO POST SOLUTION so I don't do a massive bump
Installed windows and ran the BIOS flasher that came with the battery. Didn't work until I changed a line in the plaintext configuration file (config.ini or something) it comes with. Changed "Capacity: 20" to "Capacity: -10". This changed the battery charge requirement from 20% to negative ten percent (any negative number will do), allowing the program to run and flash the BIOS. Didn't realize I could do that, but it fixed the problem 100%.
#### BEGIN ORIGINAL POST: ################################
Hey guys,
I'm a bit of a linux noob, but I've spent many hours this week trying to fix this issue on my own and have learned a lot about making custom kernels, hardware stuff, ACPI, and ABS. However, nothing I've done has worked and I've hit a wall. For reference, I'm on a Sony Vaio VGN-FZ4000 with linux-3.0 base kernel, gnome3/gdm. The battery is made in china and doesn't list a manufacturer, just model number BPS8, 52000mAh.
[Backstory]
So I recently got an OEM battery to replace the broken original, which hasn't worked since before I installed arch (though it worked with an Arch install I did a couple years ago). When I first plugged it in, the gnome battery symbol popped up listing the battery at 0% with an exclamation icon. I unplugged from AC power and the laptop still ran, but the battery monitor just said it was at 0% and 'Estimating' remaining time. I figured this was a glitch with gnome or just because it was this battery's first cycle so I let it run down until it hard-crashed. Then I plugged back into AC and tried to turn on the computer, but it wouldn't do anything until I removed the battery.
Looking into the problem I discovered this was due to the ACPI firmware table DSDT being compiled for Windows, which has, shall we say, fewer restrictions on sanity than the Intel ASL compiler used for UNIX systems. Sure enough I extracted /sys/firmware/acpi/tables/DSDT to find that its section about the battery contained the entry 'Zero' for Battery Technology, which translates to "non-rechargeable", rather than 'One', which makes it chargeable. acpitool confirmed this; my system thought the battery was non-rechargeable and was constantly discharging it. Needless to say I've only been putting it in temporarily to test solutions since.
[/backstory]
[tl;dr] DSDT firmware contains malformed battery description, now I can't get my system to run with a custom DSDT. [/tl;dr]
Attempted solutions:
[1]
Extract, modify, recompile DSDT and include it with the kernel compilation .config options
CONIFG_ACPI_CUSTOM_DSDT=y
CONFIG_ACPI_CUSTOM_DSDT_FILE="/usr/src/custom_dsdt.hex
CONIFG_STANDALONE=n
as suggested here, a page linked to by the arch wiki page on DSDT.
I followed the instructions but no matter what this has generated errors during the kernel compilation, sometimes due to every line containing unexpected \231 (or other numbers) characters, sometimes finding some error in the DSDT file and then claiming that the driver it was compiling (ol.c somewhere in the drivers/acpi section I believe) had references to undefined functions all over the place. I CANNOT compile with a custom DSDT specified.
[2]
Place recompiled DSDT in /lib/initcpio/custom.dsdt and add 'dsdt' to the HOOKS in mkinitcpio (and rebuild the initramfs-linux-*.img, of course). Another version of this included recompiling the kernel with CONFIG_STANDALONE disabled.
In neither of these situations has the running DSDT ever been anything but the BIOS-supplied one and not once has the battery shown any different behavior.
acpitool and $ cat /proc/acpi/battery/BAT0/info have consistently claimed the information specified in the BIOS-supplied DSDT; the battery is non-rechargeable and is discharging at an unknown rate. Sometimes acpi will even report that the battery has zero capacity.
The arch wiki does say mkinitcpio doesn't support the dsdt hook as of 2.6.30, but [1] didn't work either and mkinitcpio -H dsdt still told me to try this so I did.
[3]
The final solution I have tried has been to do [2] but to recompile the kernel with the legacy support for battery and ac adapter stuff disabled. I tried this because it was suggested in the kernel.log;
Sep 13 11:51:03 localhost kernel: [ 11.740059] ACPI: Deprecated procfs I/F for AC is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared
Sep 13 11:51:03 localhost kernel: [ 11.753434] ACPI: AC Adapter [ADP1] (on-line)
The corresponding line now reads
ACPI: AC Adapter [ADP1] (on-line)
(The same goes for the battery BAT0)
but all this does is remove the battery/ and adp1/ folders from /proc/acpi/ and break acpitool functionality. The log still doesn't mention the dsdt hook, either.
[4]
The old way to do this was to use the acpi-dsdt-initrd-patch-* patch, but that hasn't been updated for modern kernels, presumably because of the new "functionality" from mkiniticpio. The current kernel .config doesn't include any options for ACPI initrd/initramfs support or reading a DSDT from initramfs, which is the functionality provided by this patch.
This covers all the methods I've been able to find on the internet and I'm at a loss for what to do. Am I doing something wrong in [1]? Under what conditions will the compiler fail/succeed with a CONFIG_ACPI_CUSTOM_DSDT_FILE?
When I recompile I fix the 'Zero' definition and a couple compiler errors and warnings. The errors come from section length definitions, which read as 0x00000000 rather than the appropriate max-min value so I fix those, and the warnings come from _T_* methods belonging to the compiler, so I refactor the code to remove the initial underscores. The last warning comes from an isolated And statement that's within brackets (compiler complains it doesn't do anything), but if I remove that the compiler fails hard.
Thanks to anyone who's read this far. Please let me know if you have any ideas how to get my system to use a customized DSDT.
Last edited by paraffin (2011-09-29 23:20:30)Thanks for the offer, Radioactive man However, I'm actually compiling a customized kernel with the linux-ck and -sony patches, so your packages won't help. (The custom kernel works fine and I've tested this battery behavior on the the regular, -ck, and -sony kernels as well)
Anyway, so I tried another compile with
CONFIG_PREVENT_FIRMWARE_BUILD=n in addition to the options listed in [1] and that time it compiled.
Unfortunately it still didn't load the DSDT!
I did catch a quick little error message that turned up in kernel.log though;
/var/log/kernel.log:Sep 15 11:50:24 localhost kernel: [ 0.925780] acerhdf: unknown (unsupported) BIOS version Sony Corporation/VGN-FZ4000E/R2110J7, please report, aborting!
acerhdf is a fan controller module for the Aspire One, and perhaps I left that in the kernel config and it's preventing the custom DSDT from loading, even though the acerhdf module never gets loaded itself, nor is it in my rc.conf or anything else... If that was the cause of all this, I'm gonna be angry...
Anyway, this message does not appear with my latest kernel build because I took off the custom DSDT option, hoping to be able to use ACPI_CUSTOM_METHOD=y, which supposedly allows one to inject a custom AML method into a debug fs. It wouldn't have worked anyway, as it doesn't let you modify Device sections, but even with a dummy method insertion it didn't give my root modification privileges as it was supposed to...
Will try recompiling AGAIN with this CONFIG_ACERHDF=n (it's simply 'not set' in my current .config), while also enabling the custom kernel etc. If this doesn't work I have no idea what I'll do.
Anyway, thanks for your help and time: -
[SOLVED] ALSA firmware not loading properly with kernel 3.8.6-1
Hi All,
I have a E-MU 1820 card + breakout box that have been working beautiful under Archlinux for years but now something happen.
It still work OK under windows (dual boot same computer).
Normally during boot all indicators on the breakout box blink and then only thin show is clock setting indicator. But now all the indicators still blink but instead it is a -12 dB indicator that light up and not the clock settings and no sound.
dmesg show following.
[christer@Arch ~]$ dmesg | grep emu
[ 5.269612] emu1010: Special config.
[ 5.269731] emu1010: EMU_HANA_ID = 0x7f
[ 5.274685] emu1010: firmware file = emu/hana.fw, size = 0x133a4
[ 13.465727] emu1010: Hana Firmware loaded
[ 13.465776] emu1010: Hana version: 3.4
[ 13.465864] emu1010: Card options = 0x0
[ 13.465888] emu1010: Card options = 0x0
[ 13.466379] emu1010: Card options3 = 0x0
[ 14.486723] emu1010: Loading Audio Dock Firmware
[ 16.477785] emu1010: EMU_HANA+DOCK_IRQ_STATUS = 0x36
[ 16.477809] emu1010: EMU_HANA+DOCK_ID = 0x55
[ 16.477809] emu1010: Audio Dock Firmware loaded
[christer@Arch ~]$
aplay -l looks like it did before.
[christer@Arch ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: EMU1010 [E-mu 1010 [MAEM8810]], device 0: emu10k1 [ADC Capture/Standard PCM Playback]
Subdevices: 32/32
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
Subdevice #8: subdevice #8
Subdevice #9: subdevice #9
Subdevice #10: subdevice #10
Subdevice #11: subdevice #11
Subdevice #12: subdevice #12
Subdevice #13: subdevice #13
Subdevice #14: subdevice #14
Subdevice #15: subdevice #15
Subdevice #16: subdevice #16
Subdevice #17: subdevice #17
Subdevice #18: subdevice #18
Subdevice #19: subdevice #19
Subdevice #20: subdevice #20
Subdevice #21: subdevice #21
Subdevice #22: subdevice #22
Subdevice #23: subdevice #23
Subdevice #24: subdevice #24
Subdevice #25: subdevice #25
Subdevice #26: subdevice #26
Subdevice #27: subdevice #27
Subdevice #28: subdevice #28
Subdevice #29: subdevice #29
Subdevice #30: subdevice #30
Subdevice #31: subdevice #31
card 0: EMU1010 [E-mu 1010 [MAEM8810]], device 2: emu10k1 efx [Multichannel Capture/PT Playback]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 0: EMU1010 [E-mu 1010 [MAEM8810]], device 3: emu10k1 [Multichannel Playback]
Subdevices: 1/1
Subdevice #0: subdevice #0
[christer@Arch ~]$
lsmod
[christer@Arch ~]$ lsmod | grep emu
snd_emu10k1 140245 1
snd_util_mem 2403 1 snd_emu10k1
snd_hwdep 6428 1 snd_emu10k1
snd_ac97_codec 113456 1 snd_emu10k1
snd_rawmidi 18831 1 snd_emu10k1
snd_seq_device 5268 5 snd_seq,snd_rawmidi,snd_seq_oss,snd_emu10k1,snd_seq_dummy
snd_pcm 78146 3 snd_pcm_oss,snd_ac97_codec,snd_emu10k1
snd_page_alloc 7426 2 snd_pcm,snd_emu10k1
snd_timer 18934 3 snd_pcm,snd_seq,snd_emu10k1
snd 60156 13 snd_pcm_oss,snd_ac97_codec,snd_hwdep,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_seq_oss,snd_emu10k1,snd_seq_device,snd_mixer_oss
[christer@Arch ~]$
From what I can see all looks OK, like it did when it worked, but something is not at it should.
Any thoughts or ideas about what might have happen or how to progress in troubleshooting.
All input most welcome.
I found info describing problem with firmware loading, but it is over my head.
http://git.kernel.org/cgit/linux/kernel … 54cf7008ab
Output from Aadebug ( http://alsa.opensrc.org/Aadebug )
[christer@Arch ~]$ ./alsadebug
ALSA Audio Debug v0.2.0 - Fri Apr 12 20:46:05 CEST 2013
http://alsa.opensrc.org/aadebug
http://www.gnu.org/licenses/agpl-3.0.txt
Kernel ----------------------------------------------------
Linux Arch 3.8.6-1-ARCH #1 SMP PREEMPT Sat Apr 6 07:27:01 CEST 2013 x86_64 GNU/Linux
Advanced Linux Sound Architecture Driver Version k3.8.6-1-ARCH.
Loaded Modules --------------------------------------------
snd_emu10k1 139271 2
snd_util_mem 2339 1 snd_emu10k1
snd_hwdep 6364 1 snd_emu10k1
snd_pcm_oss 38511 0
snd_mixer_oss 14995 1 snd_pcm_oss
snd_ac97_codec 112216 1 snd_emu10k1
snd_seq_dummy 1463 0
snd_seq_oss 29098 0
snd_seq_midi_event 5660 1 snd_seq_oss
snd_rawmidi 18742 1 snd_emu10k1
snd_seq 49946 5 snd_seq_midi_event,snd_seq_oss,snd_seq_dummy
snd_seq_device 5180 5 snd_seq,snd_rawmidi,snd_seq_oss,snd_emu10k1,snd_seq_dummy
snd_pcm 76956 4 snd_pcm_oss,snd_ac97_codec,snd_emu10k1
snd_page_alloc 7298 2 snd_pcm,snd_emu10k1
snd_timer 18687 3 snd_pcm,snd_seq,snd_emu10k1
snd 58893 14 snd_pcm_oss,snd_ac97_codec,snd_hwdep,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_seq_oss,snd_emu10k1,snd_seq_device,snd_mixer_oss
Proc Asound -----------------------------------------------
0 [EMU1010 ]: Audigy2 - E-mu 1010 [MAEM8810]
E-mu 1010 [MAEM8810] (rev.3, serial:0x40011102) at 0xd000, irq 19
1: : sequencer
2: [ 0- 0]: hardware dependent
3: [ 0- 1]: raw midi
4: [ 0- 0]: raw midi
5: [ 0- 3]: digital audio playback
6: [ 0- 2]: digital audio playback
7: [ 0- 2]: digital audio capture
8: [ 0- 1]: digital audio capture
9: [ 0- 0]: digital audio playback
10: [ 0- 0]: digital audio capture
11: [ 0] : control
33: : timer
00-00: EMU10K1 (FX8010)
00-00: emu10k1 : ADC Capture/Standard PCM Playback : playback 32 : capture 1
00-01: emu10k1 mic : Mic Capture : capture 1
00-02: emu10k1 efx : Multichannel Capture/PT Playback : playback 8 : capture 1
00-03: emu10k1 : Multichannel Playback : playback 1
Client info
cur clients : 3
peak clients : 3
max clients : 192
Client 0 : "System" [Kernel]
Port 0 : "Timer" (Rwe-)
Port 1 : "Announce" (R-e-)
Connecting To: 15:0
Client 14 : "Midi Through" [Kernel]
Port 0 : "Midi Through Port-0" (RWe-)
Client 15 : "OSS sequencer" [Kernel]
Port 0 : "Receiver" (-we-)
Connected From: 0:1
Client 16 : "E-mu 1010 [MAEM8810]" [Kernel]
Port 0 : "Audigy MPU-401 (UART)" (RWeX)
Port 32 : "Audigy MPU-401 #2" (RWeX)
Client 17 : "Emu10k1 WaveTable" [Kernel]
Port 0 : "Emu10k1 Port 0" (-We-)
Port 1 : "Emu10k1 Port 1" (-We-)
Port 2 : "Emu10k1 Port 2" (-We-)
Port 3 : "Emu10k1 Port 3" (-We-)
Dev Snd ---------------------------------------------------
total 0
drwxr-xr-x 2 root root 60 Apr 12 20:42 by-path
crw-rw----+ 1 root audio 116, 11 Apr 12 20:42 controlC0
crw-rw----+ 1 root audio 116, 2 Apr 12 20:42 hwC0D0
crw-rw----+ 1 root audio 116, 12 Apr 12 20:46 hwC0D2
crw-rw----+ 1 root audio 116, 4 Apr 12 20:42 midiC0D0
crw-rw----+ 1 root audio 116, 3 Apr 12 20:42 midiC0D1
crw-rw----+ 1 root audio 116, 13 Apr 12 20:46 midiC0D2
crw-rw----+ 1 root audio 116, 14 Apr 12 20:46 midiC0D3
crw-rw----+ 1 root audio 116, 10 Apr 12 20:42 pcmC0D0c
crw-rw----+ 1 root audio 116, 9 Apr 12 20:43 pcmC0D0p
crw-rw----+ 1 root audio 116, 8 Apr 12 20:42 pcmC0D1c
crw-rw----+ 1 root audio 116, 7 Apr 12 20:42 pcmC0D2c
crw-rw----+ 1 root audio 116, 6 Apr 12 20:42 pcmC0D2p
crw-rw----+ 1 root audio 116, 5 Apr 12 20:42 pcmC0D3p
crw-rw----+ 1 root audio 116, 1 Apr 12 20:42 seq
crw-rw----+ 1 root audio 116, 33 Apr 12 20:42 timer
CPU -------------------------------------------------------
model name : Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz
cpu MHz : 2000.000
model name : Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz
cpu MHz : 2000.000
RAM -------------------------------------------------------
MemTotal: 4051696 kB
SwapTotal: 51196 kB
Hardware --------------------------------------------------
01:00.0 VGA compatible controller: NVIDIA Corporation G94 [GeForce 9600 GT] (rev a1)
05:01.0 Multimedia audio controller: Creative Labs SB Audigy (rev 03)
Interupts -------------------------------------------------
CPU0 CPU1
0: 48 0 IO-APIC-edge timer
1: 1 1 IO-APIC-edge i8042
6: 1 2 IO-APIC-edge floppy
8: 0 1 IO-APIC-edge rtc0
9: 0 0 IO-APIC-fasteoi acpi
12: 4 1 IO-APIC-edge i8042
16: 529 493 IO-APIC-fasteoi uhci_hcd:usb1, pata_jmicron, nvidia
18: 10654 10645 IO-APIC-fasteoi uhci_hcd:usb3, ehci_hcd:usb4, uhci_hcd:usb8, firewire_ohci, i801_smbus
19: 3621 3626 IO-APIC-fasteoi uhci_hcd:usb7, snd_emu10k1
21: 0 0 IO-APIC-fasteoi uhci_hcd:usb2
23: 0 0 IO-APIC-fasteoi ehci_hcd:usb5, uhci_hcd:usb6
44: 7637 7652 PCI-MSI-edge ahci
45: 11719 11736 PCI-MSI-edge eth0
NMI: 47 47 Non-maskable interrupts
LOC: 49551 45081 Local timer interrupts
SPU: 0 0 Spurious interrupts
PMI: 47 47 Performance monitoring interrupts
IWI: 0 0 IRQ work interrupts
RTR: 0 0 APIC ICR read retries
RES: 28730 28313 Rescheduling interrupts
CAL: 94 54 Function call interrupts
TLB: 3503 3509 TLB shootdowns
TRM: 0 0 Thermal event interrupts
THR: 0 0 Threshold APIC interrupts
MCE: 0 0 Machine check exceptions
MCP: 1 1 Machine check polls
ERR: 0
MIS: 0
[christer@Arch ~]$
output from systemctl show somw inacive sound related sevices.
alsa-restore.service loaded inactive dead Restore Sound Card State
alsa-store.service loaded inactive dead Store Sound Card State
auditd.service error inactive dead auditd.service
display-manager.service error inactive dead display-manager.service
dmeventd.service loaded inactive dead Device-mapper event daemon
emergency.service loaded inactive dead Emergency Shell
lvmetad.service loaded inactive dead LVM2 metadata daemon
plymouth-quit-wait.service error inactive dead plymouth-quit-wait.service
plymouth-start.service error inactive dead plymouth-start.service
rc-local-shutdown.service loaded inactive dead /etc/rc.local.shutdown Compatibility
rescue.service loaded inactive dead Rescue Shell
systemd-...console.service loaded inactive dead Dispatch Password Requests to Console
systemd-...rd-wall.service loaded inactive dead Forward Password Requests to Wall
systemd-fsck-root.service loaded inactive dead File System Check on Root Device
systemd-...e8ee844.service loaded inactive dead File System Check on /dev/disk/by-uuid/9751ee37-e769-4bbe-9436-2d8e5e8ee844
systemd-...ev-sda2.service loaded inactive dead File System Check on /dev/sda2
systemd-...ev-sda4.service loaded inactive dead File System Check on /dev/sda4
systemd-initctl.service loaded inactive dead /dev/initctl Compatibility Daemon
systemd-...l-flush.service loaded inactive dead Trigger Flushing of Journal to Persistent Storage
systemd-...ed-load.service loaded inactive dead Load Random Seed
systemd-...ed-save.service loaded inactive dead Save Random Seed
systemd-...ad-done.service loaded inactive dead Stop Read-Ahead Data Collection
systemd-shutdownd.service loaded inactive dead Delayed Shutdown Service
systemd-...s-clean.service loaded inactive dead Cleanup of Temporary Directories
systemd-...unlevel.service loaded inactive dead Update UTMP about System Runlevel Changes
systemd-...hutdown.service loaded inactive dead Update UTMP about System Shutdown
ypbind.service error inactive dead ypbind.service
emergency.target loaded inactive dead Emergency Mode
final.target loaded inactive dead Final Step
nss-lookup.target loaded inactive dead Host and Network Name Lookups
nss-user-lookup.target loaded inactive dead User and Group Name Lookups
remote-fs-pre.target loaded inactive dead Remote File Systems (Pre)
remote-fs-setup.target error inactive dead remote-fs-setup.target
rescue.target loaded inactive dead Rescue Mode
runlevel1.target error inactive dead runlevel1.target
runlevel2.target error inactive dead runlevel2.target
runlevel3.target error inactive dead runlevel3.target
runlevel4.target error inactive dead runlevel4.target
runlevel5.target error inactive dead runlevel5.target
shutdown.target loaded inactive dead Shutdown
syslog.target error inactive dead syslog.target
umount.target loaded inactive dead Unmount All Filesystems
All the best!
Christer
Last edited by agkbill (2013-04-15 18:41:03)Thank you mich41!
It looks like a kernel bug.
I downgraded to 3.7.10-1 then firmware loaded OK and I could play sounds.
Upgraded to 3.8.6-1 then the firmware fail to load.
Something looks not ok with 3.8.6-1.
Best regards,
Christer -
[SOLVED] Awesome is not recognizing widgets
Hey everybody,
So this is my first (non-virtualbox) arch install. I just switched over from crunchbang. I had awesome installed on crunchbang and used that as my primary window manager. So I saved all of my configs and everything so that I could use them on arch. I got arch installed and then awesome, and awesome works well. I am using it right now. But as soon as I started trying to add widgets it wouldn't let me. Every time I restart it awesome reverts to the rc.lua in /etc/xdg... and gives me a warning message saying:
Oops, there were errors during startup!
/home/nathan/.config/awesome/rc.lua:117: attempt to call global 'widget' (a nil value)
The line it is referring to is this:
separator = widget({ type = "textbox" })
Also, all of the requires at the top currently look like this:
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
awful.rules = require("awful.rules")
require("awful.autofocus")
-- Widget and layout library
wibox = require("wibox")
-- Theme handling library
local beautiful = require("beautiful")
-- Notification library
local naughty = require("naughty")
local menubar = require("menubar")
So I tried to google and search the awesome wiki and the arch wiki for how it is done on arch. From everything I have found I am doing it correctly, but I must be missing something. One thought was that it might be a result of the most recent awesome update. I think it was on the 4th. Any ideas?
Last edited by nhare330 (2013-01-09 00:21:05)Here it is. My rc.lua:
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
awful.rules = require("awful.rules")
require("awful.autofocus")
-- Widget and layout library
local wibox = require("wibox")
local vicious = require("vicious")
-- Theme handling library
local beautiful = require("beautiful")
-- Notification library
local naughty = require("naughty")
local menubar = require("menubar")
-- {{{ Error handling
-- Check if awesome encountered an error during startup and fell back to
-- another config (This code will only ever execute for the fallback config)
if awesome.startup_errors then
naughty.notify({ preset = naughty.config.presets.critical,
title = "Oops, there were errors during startup!",
text = awesome.startup_errors })
end
-- Handle runtime errors after startup
do
local in_error = false
awesome.connect_signal("debug::error", function (err)
-- Make sure we don't go into an endless error loop
if in_error then return end
in_error = true
naughty.notify({ preset = naughty.config.presets.critical,
title = "Oops, an error happened!",
text = err })
in_error = false
end)
end
-- {{{ Variable definitions
-- Themes define colours, icons, and wallpapers
beautiful.init("/usr/share/awesome/themes/zenburn/theme.lua")
-- This is used later as the default terminal and editor to run.
terminal = "lxterminal"
editor = os.getenv("EDITOR") or "nano"
editor_cmd = terminal .. " -e " .. editor
-- Default modkey.
-- Usually, Mod4 is the key with a logo between Control and Alt.
-- If you do not like this or do not have such a key,
-- I suggest you to remap Mod4 to another key using xmodmap or other tools.
-- However, you can use another modifier like Mod1, but it may interact with others.
modkey = "Mod4"
-- Table of layouts to cover with awful.layout.inc, order matters.
local layouts =
awful.layout.suit.floating,
awful.layout.suit.tile,
awful.layout.suit.tile.left,
awful.layout.suit.tile.bottom,
awful.layout.suit.tile.top,
awful.layout.suit.fair,
awful.layout.suit.fair.horizontal,
awful.layout.suit.spiral,
awful.layout.suit.spiral.dwindle,
awful.layout.suit.max,
awful.layout.suit.max.fullscreen,
awful.layout.suit.magnifier
-- {{{ Wallpaper
if beautiful.wallpaper then
for s = 1, screen.count() do
gears.wallpaper.maximized(beautiful.wallpaper, s, true)
end
end
-- {{{ Tags
-- Define a tag table which hold all screen tags.
tags = {
names = { "➊ ", "➋ ", "➌ ", "➍ ", "➎ ", "◌ " },
layout = { layouts[2], layouts[10], layouts[10], layouts[1], layouts[1], layouts[10]
for s = 1, screen.count() do
-- Each screen has its own tag table.
tags[s] = awful.tag(tags.names, s, tags.layout)
end
-- {{{ Menu
-- Create a laucher widget and a main menu
myawesomemenu = {
{ "manual", terminal .. " -e man awesome" },
{ "edit config", editor_cmd .. " " .. awesome.conffile },
{ "restart", awesome.restart },
{ "quit", awesome.quit }
mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
{ "open terminal", terminal }
mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon,
menu = mymainmenu })
-- Menubar configuration
menubar.utils.terminal = terminal -- Set the terminal for applications that require it
-- {{{ Wibox
-- Separator
separator = wibox.widget.textbox()
separator:set_text(" | ")
-- Spacer
spacer = wibox.widget.textbox()
spacer:set_text(" ")
-- Network usage widget
netwidget = wibox.widget.textbox()
vicious.register(netwidget, vicious.widgets.net, '<span color="#CDBC73">${eth0 down_kb}</span> <span color="#7F9F7F">${eth0 up_kb}</span>', 3)
-- Memory widget
memwidget = wibox.widget.textbox()
memwidget_t = awful.tooltip({ objects = {memwidget}, })
vicious.register(memwidget, vicious.widgets.mem,
function (widget, args)
memwidget_t:set_text('<span color="#9868B1"> mem: ' ..args[2].. '/' ..args[3].. 'mb \n free: ' ..args[4].. 'mb \n swap: ' ..args[5].. '% > ' ..args[6].. '/' ..args[7].. 'mb \n free: ' ..args[8].. 'mb </span>')
return '<span color="#CDBC73">▣ ' ..args[1].. '%</span>'
end, 3)
-- Cpu widget
cpuwidget = wibox.widget.textbox()
cpuwidget_t = awful.tooltip({ objects = {cpuwidget}, })
vicious.register(cpuwidget, vicious.widgets.cpu,
function (widget, args)
cpuwidget_t:set_text('<span color="#9868B1"> cpu0: ' ..args[2].. '% \n cpu1: ' ..args[3].. '% </span>')
return '<span color="#CDBC73">◈ ' ..args[1].. '%</span>'
end, 3)
-- Battery widget
batwidget = wibox.widget.textbox()
batwidget_t = awful.tooltip({ objects = {batwidget}, })
vicious.register(batwidget, vicious.widgets.bat,
function (widget, args)
batwidget_t:set_text('<span color="#9868B1"> ' ..args[3].. ' </span>')
return '<span color="#CDBC73">↯ ' ..args[1].. '' ..args[2].. '</span>'
end, 14, "BAT0")
-- Keyboard widget
kbdcfg = {}
kbdcfg.cmd = "setxkbmap"
kbdcfg.layout = { "us", "es" }
-- kbdcfg.us = "<span color='#CDBC73'>us</span>"
-- kbdcfg.es = "<span color='#CDBC73'>es</span>"
kbdcfg.current = 1
kbdcfg.widget = wibox.widget.textbox({ align = "right" })
kbdcfg.widget:set_text( kbdcfg.layout[kbdcfg.current] )
kbdcfg.switch = function ()
kbdcfg.current = kbdcfg.current % #(kbdcfg.layout) + 1
local t = kbdcfg.layout[kbdcfg.current]
kbdcfg.widget:set_text( t )
os.execute( kbdcfg.cmd .. t )
end
kbdcfg.widget:buttons(awful.util.table.join(
awful.button({ }, 1, function () kbdcfg.switch() end )
-- Wifi
wifiwidget = wibox.widget.textbox()
wifiwidget_t = awful.tooltip({ objects = {wifiwidget}, })
vicious.register (wifiwidget, vicious.widgets.wifi,
function (widget, args)
wifiwidget_t:set_text('<span color="#9868B1"> ' ..args["{ssid}"].. ' \n mode: ' ..args["{mode}"].. ' \n chan: ' ..args["{chan}"].. ' \n sign: ' ..args["{sign}"].. ' \n rate: ' ..args["{rate}"].. ' </span>')
-- ' \n rate: ' ..args["{rate}"].. ' \n linp: ' ..args["{linp}"]..
return '<span color="#CDBC73">⇄ ' ..args["{link}"].. '%</span>'
end, 7, "wlan0")
-- File System
fswidget = wibox.widget.textbox()
fswidget_t = awful.tooltip({ objects = {fswidget}, })
vicious.register(fswidget, vicious.widgets.fs,
function (widget, args)
fswidget_t:set_text('<span color="#9868B1">used: ' ..args["{/ used_gb}"].. '/' ..args["{/ size_gb}"].. 'gb </span>')
return '<span color="#CDBC73">◕ ' ..args["{/ avail_gb}"].. 'gb</span>'
end, 61)
-- Uptime
uptimewidget = wibox.widget.textbox()
uptimewidget_t = awful.tooltip({ objects = {uptimewidget}, })
vicious.register(uptimewidget, vicious.widgets.uptime,
function (widget, args)
uptimewidget_t:set_text('<span color="#9868B1"> ' ..args[1].. 'd ' ..args[2].. ':' ..args[3].. ' </span>')
return string.format('<span color="#CDBC73">⇑ ' ..args[1].. 'd</span>')
end, 61)
-- Volume Widget
volumecfg = {}
volumecfg.cardid = 0
volumecfg.channel = "Master"
volumecfg.widget = wibox.widget.textbox({ align = "right" })
-- volumecfg_t = awful.tooltip({ objects = { volumecfg.widget },})
-- volumecfg_t:set_text("volume")
-- command must start with a space!
volumecfg.mixercommand = function (command)
local fd = io.popen("amixer -c " .. volumecfg.cardid .. command)
local status = fd:read("*all")
fd:close()
local volume = string.match(status, "(%d?%d?%d)%%")
volume = string.format("% 3d", volume)
status = string.match(status, "%[(o[^%]]*)%]")
if string.find(status, "on", 1, true) then
volume = "<span color='#CDBC73'>◄ " .. volume .. "</span>"
else
volume = "<span color='#CDBC73'>⋪ " .. volume .. "</span>"
end
volumecfg.widget:set_text( volume )
end
volumecfg.update = function ()
volumecfg.mixercommand(" sget " .. volumecfg.channel)
end
volumecfg.up = function ()
volumecfg.mixercommand(" sset " .. volumecfg.channel .. " 1%+")
end
volumecfg.down = function ()
volumecfg.mixercommand(" sset " .. volumecfg.channel .. " 1%-")
end
volumecfg.toggle = function ()
volumecfg.mixercommand(" sset " .. volumecfg.channel .. " toggle")
end
volumecfg.widget:buttons({
button({ }, 4, function () volumecfg.up() end),
button({ }, 5, function () volumecfg.down() end),
button({ }, 1, function () volumecfg.toggle() end)
volumecfg.update()
-- Date widget
datewidget = wibox.widget.textbox()
vicious.register(datewidget, vicious.widgets.date, '<span color="#D8D8D8"> %a. %b %d, %l:%M %p </span>', 5)
-- Create a textclock widget
mytextclock = awful.widget.textclock({ align = "right" })
-- Calendar widget to attach to the textclock
require('calendar2')
calendar2.addCalendarToWidget(datewidget)
-- Create a textclock widget
mytextclock = awful.widget.textclock()
-- Create a wibox for each screen and add it
mywibox = {}
mypromptbox = {}
mylayoutbox = {}
mytaglist = {}
mytaglist.buttons = awful.util.table.join(
awful.button({ }, 1, awful.tag.viewonly),
awful.button({ modkey }, 1, awful.client.movetotag),
awful.button({ }, 3, awful.tag.viewtoggle),
awful.button({ modkey }, 3, awful.client.toggletag),
awful.button({ }, 4, function(t) awful.tag.viewnext(awful.tag.getscreen(t)) end),
awful.button({ }, 5, function(t) awful.tag.viewprev(awful.tag.getscreen(t)) end)
mytasklist = {}
mytasklist.buttons = awful.util.table.join(
awful.button({ }, 1, function (c)
if c == client.focus then
c.minimized = true
else
-- Without this, the following
-- :isvisible() makes no sense
c.minimized = false
if not c:isvisible() then
awful.tag.viewonly(c:tags()[1])
end
-- This will also un-minimize
-- the client, if needed
client.focus = c
c:raise()
end
end),
awful.button({ }, 3, function ()
if instance then
instance:hide()
instance = nil
else
instance = awful.menu.clients({ width=250 })
end
end),
awful.button({ }, 4, function ()
awful.client.focus.byidx(1)
if client.focus then client.focus:raise() end
end),
awful.button({ }, 5, function ()
awful.client.focus.byidx(-1)
if client.focus then client.focus:raise() end
end))
for s = 1, screen.count() do
-- Create a promptbox for each screen
mypromptbox[s] = awful.widget.prompt()
-- Create an imagebox widget which will contains an icon indicating which layout we're using.
-- We need one layoutbox per screen.
mylayoutbox[s] = awful.widget.layoutbox(s)
mylayoutbox[s]:buttons(awful.util.table.join(
awful.button({ }, 1, function () awful.layout.inc(layouts, 1) end),
awful.button({ }, 3, function () awful.layout.inc(layouts, -1) end),
awful.button({ }, 4, function () awful.layout.inc(layouts, 1) end),
awful.button({ }, 5, function () awful.layout.inc(layouts, -1) end)))
-- Create a taglist widget
mytaglist[s] = awful.widget.taglist(s, awful.widget.taglist.filter.all, mytaglist.buttons)
-- Create a tasklist widget
mytasklist[s] = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, mytasklist.buttons)
-- Create the wibox
mywibox[s] = awful.wibox({ position = "top", screen = s })
-- Widgets that are aligned to the left
local left_layout = wibox.layout.fixed.horizontal()
left_layout:add(mylauncher)
left_layout:add(mytaglist[s])
left_layout:add(mypromptbox[s])
-- Widgets that are aligned to the right
local right_layout = wibox.layout.fixed.horizontal()
if s == 1 then right_layout:add(wibox.widget.systray()) end
right_layout:add(mytextclock)
right_layout:add(mylayoutbox[s])
-- Now bring it all together (with the tasklist in the middle)
local layout = wibox.layout.align.horizontal()
layout:set_left(left_layout)
layout:set_middle(mytasklist[s])
layout:set_right(right_layout)
mywibox[s]:set_widget(layout)
end
-- {{{ Mouse bindings
root.buttons(awful.util.table.join(
awful.button({ }, 3, function () mymainmenu:toggle() end),
awful.button({ }, 4, awful.tag.viewnext),
awful.button({ }, 5, awful.tag.viewprev)
-- {{{ Key bindings
globalkeys = awful.util.table.join(
awful.key({ modkey, }, "Left", awful.tag.viewprev ),
awful.key({ modkey, }, "Right", awful.tag.viewnext ),
awful.key({ modkey, }, "Escape", awful.tag.history.restore),
awful.key({ modkey, }, "Down",
function ()
awful.client.focus.byidx( 1)
if client.focus then client.focus:raise() end
end),
awful.key({ modkey, }, "Up",
function ()
awful.client.focus.byidx(-1)
if client.focus then client.focus:raise() end
end),
awful.key({ modkey, }, "a", function () mymainmenu:show() end),
-- Layout manipulation
awful.key({ modkey, "Shift" }, "Down", function () awful.client.swap.byidx( 1) end),
awful.key({ modkey, "Shift" }, "Up", function () awful.client.swap.byidx( -1) end),
awful.key({ modkey, "Control" }, "Down", function () awful.screen.focus_relative( 1) end),
awful.key({ modkey, "Control" }, "Up", function () awful.screen.focus_relative(-1) end),
awful.key({ modkey, }, "u", awful.client.urgent.jumpto),
awful.key({ modkey, }, "Tab",
function ()
awful.client.focus.history.previous()
if client.focus then
client.focus:raise()
end
end),
-- Standard program
awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end),
awful.key({ modkey, "Control" }, "r", awesome.restart),
awful.key({ modkey, "Shift" }, "q", awesome.quit),
awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end),
awful.key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end),
awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1) end),
awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1) end),
awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1) end),
awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end),
awful.key({ modkey, }, "space", function () awful.layout.inc(layouts, 1) end),
awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end),
awful.key({ modkey, "Control" }, "n", awful.client.restore),
-- Prompt
awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end),
awful.key({ modkey }, "x",
function ()
awful.prompt.run({ prompt = "Run Lua code: " },
mypromptbox[mouse.screen].widget,
awful.util.eval, nil,
awful.util.getdir("cache") .. "/history_eval")
end),
-- Menubar
awful.key({ modkey }, "p", function() menubar.show() end)
clientkeys = awful.util.table.join(
awful.key({ modkey, }, "f", function (c) c.fullscreen = not c.fullscreen end),
awful.key({ modkey, }, "w", function (c) c:kill() end),
awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ),
awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end),
awful.key({ modkey, }, "o", awful.client.movetoscreen ),
awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end),
awful.key({ modkey, }, "n",
function (c)
-- The client currently has the input focus, so it cannot be
-- minimized, since minimized clients can't have the focus.
c.minimized = true
end),
awful.key({ modkey, }, "m",
function (c)
c.maximized_horizontal = not c.maximized_horizontal
c.maximized_vertical = not c.maximized_vertical
end)
-- Compute the maximum number of digit we need, limited to 9
keynumber = 0
for s = 1, screen.count() do
keynumber = math.min(9, math.max(#tags[s], keynumber))
end
-- Bind all key numbers to tags.
-- Be careful: we use keycodes to make it works on any keyboard layout.
-- This should map on the top row of your keyboard, usually 1 to 9.
for i = 1, keynumber do
globalkeys = awful.util.table.join(globalkeys,
awful.key({ modkey }, "#" .. i + 9,
function ()
local screen = mouse.screen
if tags[screen][i] then
awful.tag.viewonly(tags[screen][i])
end
end),
awful.key({ modkey, "Control" }, "#" .. i + 9,
function ()
local screen = mouse.screen
if tags[screen][i] then
awful.tag.viewtoggle(tags[screen][i])
end
end),
awful.key({ modkey, "Shift" }, "#" .. i + 9,
function ()
if client.focus and tags[client.focus.screen][i] then
awful.client.movetotag(tags[client.focus.screen][i])
end
end),
awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
function ()
if client.focus and tags[client.focus.screen][i] then
awful.client.toggletag(tags[client.focus.screen][i])
end
end))
end
clientbuttons = awful.util.table.join(
awful.button({ }, 1, function (c) client.focus = c; c:raise() end),
awful.button({ modkey }, 1, awful.mouse.client.move),
awful.button({ modkey }, 3, awful.mouse.client.resize))
-- Set keys
root.keys(globalkeys)
-- {{{ Rules
awful.rules.rules = {
-- All clients will match this rule.
{ rule = { },
properties = { border_width = beautiful.border_width,
border_color = beautiful.border_normal,
focus = awful.client.focus.filter,
keys = clientkeys,
buttons = clientbuttons } },
{ rule = { class = "MPlayer" },
properties = { floating = true } },
{ rule = { class = "pinentry" },
properties = { floating = true } },
{ rule = { class = "gimp" },
properties = { floating = true } },
-- Set Firefox to always map on tags number 2 of screen 1.
-- { rule = { class = "Firefox" },
-- properties = { tag = tags[1][2] } },
-- {{{ Signals
-- Signal function to execute when a new client appears.
client.connect_signal("manage", function (c, startup)
-- Enable sloppy focus
c:connect_signal("mouse::enter", function(c)
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
and awful.client.focus.filter(c) then
client.focus = c
end
end)
if not startup then
-- Set the windows at the slave,
-- i.e. put it at the end of others instead of setting it master.
-- awful.client.setslave(c)
-- Put windows in a smart way, only if they does not set an initial position.
if not c.size_hints.user_position and not c.size_hints.program_position then
awful.placement.no_overlap(c)
awful.placement.no_offscreen(c)
end
end
local titlebars_enabled = false
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
-- Widgets that are aligned to the left
local left_layout = wibox.layout.fixed.horizontal()
left_layout:add(awful.titlebar.widget.iconwidget(c))
-- Widgets that are aligned to the right
local right_layout = wibox.layout.fixed.horizontal()
right_layout:add(awful.titlebar.widget.floatingbutton(c))
right_layout:add(awful.titlebar.widget.maximizedbutton(c))
right_layout:add(awful.titlebar.widget.stickybutton(c))
right_layout:add(awful.titlebar.widget.ontopbutton(c))
right_layout:add(awful.titlebar.widget.closebutton(c))
-- The title goes in the middle
local title = awful.titlebar.widget.titlewidget(c)
title:buttons(awful.util.table.join(
awful.button({ }, 1, function()
client.focus = c
c:raise()
awful.mouse.client.move(c)
end),
awful.button({ }, 3, function()
client.focus = c
c:raise()
awful.mouse.client.resize(c)
end)
-- Now bring it all together
local layout = wibox.layout.align.horizontal()
layout:set_left(left_layout)
layout:set_right(right_layout)
layout:set_middle(title)
awful.titlebar(c):set_widget(layout)
end
end)
client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
http://pastebin.com/X4JdkVi0
Last edited by nhare330 (2013-01-18 13:59:40) -
[solved] aesni_intel module not loaded since switch to kmod
Since installing kmod-4-1 as replacement for module-init-tools the AES-NI instruction optimized crypto modules (aesni_intel) don't get loaded automatically anymore.
CPU is a SandyBridge Core-i5 2500K; aes-x86_64 isn't loaded anymore either. The CPU definitely supports AES-NI.
Is this a problem or am I supposed to write those modules down by hand in rc.conf MODULES section?
Kind regards
lynix
Last edited by lynix (2012-02-01 20:57:25)Nevermind. I found the bug -- I'll make sure this is fixed for kmod5.
tech note for those interested:
A module alias can resolve to many modules -- in this case, the alias 'aes' resolves to "aes_generic", "padlock_aes", "aesni_intel", and "aes_x86_64". modprobe, including the library equivalent, should insist on trying to insert all of these. kmod does, but it makes the mistake of quitting if one of them errors out. To wit:
with module-init-tools:
# modprobe -v aes
insmod /lib/modules/3.2.2-1-ARCH/kernel/crypto/aes_generic.ko.gz
insmod /lib/modules/3.2.2-1-ARCH/kernel/drivers/crypto/padlock-aes.ko.gz
WARNING: Error inserting padlock_aes (/lib/modules/3.2.2-1-ARCH/kernel/drivers/crypto/padlock-aes.ko.gz): No such device
insmod /lib/modules/3.2.2-1-ARCH/kernel/crypto/cryptd.ko.gz
insmod /lib/modules/3.2.2-1-ARCH/kernel/arch/x86/crypto/aes-x86_64.ko.gz
insmod /lib/modules/3.2.2-1-ARCH/kernel/arch/x86/crypto/aesni-intel.ko.gz
WARNING: Error inserting aesni_intel (/lib/modules/3.2.2-1-ARCH/kernel/arch/x86/crypto/aesni-intel.ko.gz): No such device
with kmod:
# modprobe -v aes
insmod /lib/modules/3.2.2-1-ARCH/kernel/crypto/aes_generic.ko.gz
insmod /lib/modules/3.2.2-1-ARCH/kernel/drivers/crypto/padlock-aes.ko.gz
ERROR: could not insert 'padlock_aes': No such device
Last edited by falconindy (2012-02-01 20:54:47) -
[SOLVED] Intel microcode not loaded - already available in the bios?
I'm getting ready to the linux 3.17 release and thought I should manually install the Intel microcode.
I noticed that I didn't even have the package installed, so that was my first stop.
After doing the steps outlined in the wiki, I'm not sure it's actually loaded.
The `sig` and `revision` in the available patch and the kernel output is the same.
Does this mean I already have the microcodes updated through the BIOS, or is this irrelevant?
And if it's irrelevant, any idea what I'm doing wrong?
$ uname -a
Linux simendsjo-t520 3.16.7-1-ck #1 SMP PREEMPT Fri Oct 31 13:09:18 CET 2014 x86_64 GNU/Linux
$ dmesg | grep microcode
[ 0.521721] microcode: CPU0 sig=0x206a7, pf=0x10, revision=0x29
[ 0.521739] microcode: CPU1 sig=0x206a7, pf=0x10, revision=0x29
[ 0.521764] microcode: CPU2 sig=0x206a7, pf=0x10, revision=0x29
[ 0.521783] microcode: CPU3 sig=0x206a7, pf=0x10, revision=0x29
[ 0.521894] microcode: Microcode Update Driver: v2.00 <[email protected]>, Peter Oruba
The initrd lines in grub.cfg has been changed (not showing entire config, but it's on each non-fallback initrd line)
(But this should matter yet anyway as I'm on 3.16..?)
# grep intel /boot/grub/grub.cfg
initrd /boot/intel-ucode.img /boot/initramfs-linux-ck.img
initrd /boot/intel-ucode.img /boot/initramfs-linux.img
But iucode_tool says an update is available (ref: https://wiki.archlinux.org/index.php/Microcode)
# bsdtar -Oxf /boot/intel-ucode.img | iucode_tool -tb -lS -
iucode_tool: system has processor(s) with signature 0x000206a7
selected microcodes:
001: sig 0x000206a7, pf mask 0x12, 2013-06-12, rev 0x0029, size 10240
Last edited by simendsjo (2014-11-05 20:12:36)kokoko3k wrote:
I think iucode_tool is just saying that an update has been released for your cpu model.
But yout particular cpu has already it in place.
I don't know if it is the bios to update the microcode or your cpu has been shipped with the new firmware.
Thanks! I don't really care As long as I haven't failed the installation process, I'm happy. -
[solved] AMD Ucode not loading on boot
Its being called twice during the early hooks stage of udev.
i have already googled and found I needed to have installed the AMD Ucode package. I have version 2012.1.17-3 but it is being ignored.
Im getting the error
[unix time stamp i assume] microcode: failed to load file amd-ucode/microcode_amd.bin
twice after a long pause.
How do I fix it?
Last edited by Rhiadratech (2012-09-10 14:10:51)I have put microcode in there as per instructions, but the word microcode was not in mkinitcpio.conf when I installed the system and started seeing the message. I think I added it on instructions in one of the 2 threads or an arch wiki page on the subject. I'll remove it.
The thing is I HAVE the amd-ucode package installed, and i'm STILL getting the message and associated delay on boot. So I'm looking for how I inform it I have installed it?
Last edited by Rhiadratech (2012-09-08 19:35:07) -
[SOLVED] KDE Is not loading
HI, i'm been an archlinux user for a while, never have great issues, but now i reinstalled arch in a formated disk and started all over. The thing is that I installed kde basis (following the wiki), but neither kdm via inittab, or kdm via daemon works! it just load the tt1 console and do nothing. No erors, or something. The only difference with previous installation is that the first time i installed kde-meta package, and have no issues
Any thoughts?
Last edited by atercor (2012-05-20 01:26:48)Anything in the logs? What happens if you try to start KDE with startx/.xinitrc instead of KDM?
-
I am trying to get the network (r8169) to load, currently it doesn't get detected and putting it in MODULES array doesn't do anything (I don't think anything works in MODULES array for me).
Was using 2.6.39 kernel, moved to 3.0.0; same problem.
Once the computer has booted I can easily' sudo modprobe r8169 && sudo dhcpcd eth0' no problems.
Any ideas on how to get it to work? Thanks in advance.
Last edited by beaverusiv (2011-08-03 08:48:44)Yeah, why on earth are they auto gen'd? I used archboot to install, you?
Okay, I'll rm them and reboot now.
I also have a /etc/modprobe.d/framebuffer_blacklist.conf:
blacklist aty128fb
blacklist atyfb
blacklist cirrusfb
blacklist cyber2000fb
blacklist kyrofb
blacklist neofb
blacklist nvidiafb
blacklist pm2fb
blacklist radeonfb
blacklist rivafb
blacklist s3fb
blacklist savagefb
blacklist sisfb
blacklist sstfb
blacklist tdfxfb
blacklist tridentfb
blacklist udlfb
blacklist uvesafb
blacklist viafb
blacklist vmlfb
blacklist vt8623fb
Do I need to worry about that? I'm currently using Intel G41 915 integrated.
Last edited by beaverusiv (2011-08-03 08:43:49) -
[SOLVED]Virtualbox drivers not loaded at startup
I followed the wiki and added vboxdrv to my DAEMONS. The only change is that I start it in the background. However, when I start Virtualbox, and then the guest OS within, it gives me an error.
DAEMONS=(syslog-ng @net-profiles @dbus !sshd !netfs @crond @alsa @acpid @ntpd @vboxdrv)
I have to manually
modprobe vboxdrv
in order to start the guest OS. How can I have the vboxdrv started at boot?
also, is there a way to start the guest OS directly, without having to start the Virtualbox console?Inittab:
# Runlevel 5 starts X environments
x1:5:once:/bin/su work -l -c "/usr/bin/startx -- :11 vt11 > /dev/null 2>&1"
x2:5:once:/bin/su windows -l -c "/usr/bin/startx -- :10 vt10 > /dev/null 2>&1"
x3:5:once:/bin/su windows -l -c "/usr/bin/VBoxManage startvm Ama --type vrdp > /dev/null 2>&1"
The first two start new X sessions, user "work" on vt11 and user "windows" on vt10. The third starts an RDP headless VirtualBox VM as user "windows". When the two X sessions start, they execute ~/.xinitrc (each of ~work/.xinitrc and ~windows/.xinitrc):
#!/bin/sh
# ~/.xinitrc
# Executed by startx
VirtualBox
This starts the VirtualBox GUI so I then switch to vt11 or vt10 and select a VM to run. Note each of ~windows/.VirtualBox and ~work/.VirtualBox are completely separate VB configs owned by the separate accounts.
Note that I don't bother with a window manager because I run the VMs full screen anyway, but you can start one if you want within .xinitrc.
You can change "VirtualBox" in .xinitrc to start a specific VM using VBoxManage startvm "MyVMName"
Hope this helps.
Last edited by starfry (2011-03-29 21:49:33) -
hi all
how to solve error:"Could not load file or assembly 'B1WizardBase, Version=1.0.2440.26954, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified."
its urgent...reply soon
Thanks,
Neetusmercurio_fc wrote:
Did you (a) place the .NET assembly in the same directory as the top-level VI, and (b) add a reference to the .NET assembly (it's under the Tools menu)?
Hi smercurio,
Thank you for replying
(a) No, having selected the assembly from the "Select .NET Constructor" browser, I , ahem, assumed it and it's location were already known to the OS and LabVIEW(?) ... but I'll try this ASAP!
(b) Yes!
FWIW: Since posting this, I've learned a LabVIEW 8.2 station is happy with the same assembly...
Thanks, Cheers!
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare) -
[Solved]Virtualbox kernel module not loaded
I update my system today and when I try to run Virtualbox...
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (3.6.11-1-ARCH) or it failed to
load. Please reinstall the kernel module virtualbox-host-modules or
if you don't use our stock kernel compile the modules with
sudo dkms autoinstall
You will not be able to start VMs until this problem is fixed.
I already had this trouble before and this was the fix
# modprobe vboxdrv
But it doesn't work anymore
Any ideas?
Edit: This just get fixed by itself when restaring my PC. Sorry
Last edited by ilq (2013-02-13 02:32:43)fsckd wrote:
rc.conf is part of the deprecated init system. icebox is not using systemd and neglected to mention that.
Amarildo, see the wiki.
Thanks, it really helped. It's solved.
Maybe you are looking for
-
Is there a way to structure the library
Hi All, I would love to be able to have a more flexible overview of all my files in the Library. I have it sorted by Artist. The list is quite long and if I am looking for a song by U2, I have to scroll and scroll, just to get to the letter U. Is the
-
Package javax.microedition.media does not exist
package javax.microedition.media does not exist import javax.microedition.media.*; Please tell me why this error occurs.Is it due to midlet version?
-
Hi, I am a new user with Captivate 5.5 and having trouble publishing my file for LMS. All of the documentation I read says I should publish to swf and select Zip Files AND Export to html. But, the export to html checkbox is greyed out, so I can't sel
-
Are there alternative methods to "paint()" and "paintComponent()"?
Are there any ways to draw on the screen other than using "paint()" or "paintComponent()" methods? I am asking this because I need to use active rendering for my game, and active rendering doesn't make use of paint(). Thanx.
-
My iPod shows different ID3-Tags than they are in iTunes. For example I've got the genre "Reggae" in iTunes. On my iPod I have "reggae, regga and Raggae". After entering one of the three different entrys I can see all the content that should be shown