udevd worker timeout

Error information

Waiting for UDev uevents to be processed    [BUSY]
udevd[155]: worker [173] timeout, kill it
udevd[155]: seq 1431 '/devices/pci0000:00/0000:00:1c.1/0000:12:00.0' killed
udevd[155]: worker [173] terminated by signal 9 (Killed)

PCI device

12:00.0 Network controller: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller (rev 01)

How to fix?
Edit /etc/rc.conf

MODULES=(fuse brcmsmac)  # add brcmsmac

Over!

Python for MIPS 修正记录

最近发现 Python2 和 Python3 在 import 共享库形式的模块时经常出现 “invalid mode parameter” 错误,追踪后发现是由于 MIPS 平台中 RTLD_GLOBAL 等宏和 x86 平台中定义值是不同的,而 Python 源代码中是默认为 x86 平台生成的,所以在编译前需要重新生成。

重新生成方法
Python2

cd Lib/plat-linux2/
./regen

Python3

cd Lib/plat-linux2/
./regen
cd Lib/plat-linux3/
./regen

Over!

Remote Desktop via Xephyr and ssh tunnel

Server side
1. OpenSSH Server
2. Xorg Client & XAuth
3. gnome-session

ArchLinux Example

sudo pacman -S openssh gnome xorg-xauth
sudo /etc/rc.d/sshd start

Client side
1. OpenSSH Client
2. Xorg Server & Xephyr

ArchLinux Example

# In virtual terminal
X &
DISPLAY=:0.0 Xephyr -keybd ephyr,,,xkbrules=evdev,xkbmodel=evdev,xkblayout=us -fullscreen :1 &
DISPLAY=:1.0 ssh -Xf 172.16.28.13 gnome-session

Over!

Change login (gdm) background picture or color in GNOME 3

1. Switch to gdm user.

sudo su - gdm -s /bin/bash

2. View dbus information

dbus-launch
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-eu0FhGDTaj,guid=88e71479abc78714c0d182840000018f
DBUS_SESSION_BUS_PID=1428

3. Set environment variables

export DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-eu0FhGDTaj,guid=88e71479abc78714c0d182840000018f
export DBUS_SESSION_BUS_PID=1428
export GSETTINGS_BACKEND=dconf

4. Run ‘dconf-service’

/usr/lib/dconf/dconf-service &

5. Get current picture path and color

gsettings get org.gnome.desktop.background picture-uri
gsettings get org.gnome.desktop.background primary-color

6. Set new picture or color

gsettings set org.gnome.desktop.background picture-uri 'file:///usr/share/backgrounds/hello.jpg'
gsettings set org.gnome.desktop.background primary-color '#3465a4'

Over!

Rename network interfaces

1.

udevadm info --query=all --path=/sys/class/net/eth1
P: /devices/pci0000:00/0000:00:1c.1/0000:12:00.0/net/eth1
E: UDEV_LOG=3
E: DEVPATH=/devices/pci0000:00/0000:00:1c.1/0000:12:00.0/net/eth1
E: INTERFACE=eth1
E: IFINDEX=3
E: SUBSYSTEM=net
E: ID_VENDOR_FROM_DATABASE=Broadcom Corporation
E: ID_MODEL_FROM_DATABASE=BCM4313 802.11b/g/n Wireless LAN Controller
E: ID_BUS=pci
E: ID_VENDOR_ID=0x14e4
E: ID_MODEL_ID=0x4727
E: ID_MM_CANDIDATE=1

2.

sudo vim /etc/udev/rules.d/network.rules
SUBSYSTEM=="net", ENV{ID_VENDOR_ID}=="0x14e4", ENV{ID_MODEL_ID}=="0x4727", NAME="wlan"

Over!

Drive BCM4313 802.11 b/g/n Wireless LAN Controller in Arch Linux

自从更新了 Linux 内核到 3.0 后,BCM4313(0X14e4:0x4727)无线网卡奇怪的驱动不了了。Google 后找到解决方法:

1. 从 AUR 下载软件包 broadcom-wl, http://aur.archlinux.org/packages.php?ID=19514
2.

tar xf broadcom-wl.tar.gz

3.

cd broadcom-wl

4.

makepkg

5.

sudo pacman -U *.pkg.*

6. Reboot.

Over!