https://wiki.archlinux.org/api.php?action=feedcontributions&user=Kportertx&feedformat=atomArchWiki - User contributions [en]2024-03-19T06:24:31ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_W520&diff=188062Lenovo ThinkPad W5202012-03-06T22:05:00Z<p>Kportertx: /* Other */</p>
<hr />
<div>== Note ==<br />
I am also maintaining this content at [https://github.com/kportertx/ArchTPw520 GitHub] and it may be more up to date.<br />
<br />
== Wifi issues ==<br />
* Update wireless drivers:<br />
** TODO<br />
* Random Disconnection<br />
** check "dmesg | grep wlan0" will probably be complaining about "wlan0: deauthenticating from MAC by local choice (reason=3)"<br />
** Arch wiki hints at solution: [[Wicd#Random_disconnecting]]<br />
** My Solution:<br />
*** Disable power management of pci-express in BIOS<br />
* Wicd cannot obtain IP address<br />
** [[Wicd#Failed_to_get_IP_address]]<br />
** Use dhclient instead of dhcpcd:<br />
*** packman -S dhclient<br />
*** Set wicd to use dhclient:<br />
*** in wicd-curse press 'P', select external sources, and then select dhclient<br />
<br />
== Nvidia Optimus issues ==<br />
* TODO<br />
* see:<br />
** [http://www.phoronix.com/scan.php?page=news_item&px=OTQxNg Phoronix]<br />
** [http://forums.nvidia.com/index.php?showtopic=203600 Nvidia Forums]<br />
<br />
== Other ==<br />
* Boot up issue with UDEV timeout<br />
** cat /var/log/boot | grep -i pci reveals udevd[169]: seq 1352 '/devices/pci0000:00/0000:00:1c.1/0000:03:00.0' killed<br />
*** Found similar issue here [https://bugs.archlinux.org/task/27938 Arch Bugs Report]<br />
* Disable annoying system beep<br />
** Insert "blacklist pcspkr" into /etc/modprobe.d/pcspkr_blacklist.conf<br />
** Reboot or rmmod pcspkr</div>Kportertxhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_W520&diff=188050Lenovo ThinkPad W5202012-03-06T21:06:34Z<p>Kportertx: Configuration of Lenovo Thinkpad w520</p>
<hr />
<div>== Note ==<br />
I am also maintaining this content at [https://github.com/kportertx/ArchTPw520 GitHub] and it may be more up to date.<br />
<br />
== Wifi issues ==<br />
* Update wireless drivers:<br />
** TODO<br />
* Random Disconnection<br />
** check "dmesg | grep wlan0" will probably be complaining about "wlan0: deauthenticating from MAC by local choice (reason=3)"<br />
** Arch wiki hints at solution: [[Wicd#Random_disconnecting]]<br />
** My Solution:<br />
*** Disable power management of pci-express in BIOS<br />
* Wicd cannot obtain IP address<br />
** [[Wicd#Failed_to_get_IP_address]]<br />
** Use dhclient instead of dhcpcd:<br />
*** packman -S dhclient<br />
*** Set wicd to use dhclient:<br />
*** in wicd-curse press 'P', select external sources, and then select dhclient<br />
<br />
== Nvidia Optimus issues ==<br />
* TODO<br />
* see:<br />
** [http://www.phoronix.com/scan.php?page=news_item&px=OTQxNg Phoronix]<br />
** [http://forums.nvidia.com/index.php?showtopic=203600 Nvidia Forums]<br />
<br />
== Other ==<br />
* Disable annoying system beep<br />
** Insert "blacklist pcspkr" into /etc/modprobe.d/pcspkr_blacklist.conf<br />
** Reboot or rmmod pcspkr</div>Kportertxhttps://wiki.archlinux.org/index.php?title=Wicd&diff=188048Wicd2012-03-06T20:51:23Z<p>Kportertx: /* Random disconnecting */</p>
<hr />
<div>{{i18n|Wicd}}<br />
[[Category: Networking (English)]]<br />
[[Category: Wireless Networking (English)]]<br />
<br />
[[fr:Wicd]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Covers installation and configuration of Wicd &ndash; an open source wired and wireless network manager for Linux which aims to provide a simple interface to connect to networks with a wide variety of settings.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Networking overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.wicd.net/ Wicd] is a network connection manager that can manage wireless and wired interfaces, similar and an alternative to [[NetworkManager]]. Wicd is written in [[Python]] and [[GTK+]], requiring fewer dependencies than other network managers. Alternatively, a version of Wicd for [[KDE]], written in [[Qt]], is available from the [[Arch User Repository]]. Wicd can also run from the terminal in a curses interface, requiring no X server session or task panel (see [[#Running Wicd]]).<br />
<br />
==Installation==<br />
[[pacman|Install]] {{Pkg|wicd}}, available in the [[Official Repositories]].<br />
<br />
{{Note | Since 20-3-2011 the "wicd" package from standard repositories was split: <br />
wicd: Includes everything needed to run the wicd daemon and the wicd-cli and wicd-curses interfaces.<br />
<br />
wicd-gtk: Includes everything needed to run the GTK interface of wicd and the autostart file for the client to appear in the systray.<br />
}}<br />
<br />
==== GTK client ====<br />
For a GTK front-end, install {{Pkg|wicd-gtk}}, available in the [[Official Repositories]].<br />
<br />
==== KDE client ====<br />
For a KDE front-end, install {{AUR|wicd-kde}}, available in the [[Arch User Repository]]. <br />
<br />
==== Notifications ====<br />
To enable visual notifications about network status, you need to install the {{Pkg|notification-daemon}}.<br />
<br />
If you are not using gnome, you will want to install {{Pkg|xfce4-notifyd}} instead of the notification-daemon, because it pulls a lot of unnecessary gnome packages.<br />
<br />
===Alternative===<br />
The {{AUR|wicd-bzr}} buildscript is available from [[AUR]], which should build the latest development branch.<br />
If you need an alternative version or you just want to roll your own package, you can easily build it using [[ABS]].<br />
<br />
==Getting Started==<br />
<br />
===Initial Setup===<br />
Wicd provides a daemon that must be started. <br />
<br />
{{Warning | Running multiple network managers ''will'' cause problems, so it is important to ''disable all other network management daemons''.}}<br />
<br />
First, stop all previously running network daemons:<br />
<br />
# rc.d stop network<br />
# rc.d stop dhcpcd<br />
# rc.d stop networkmanager<br />
<br />
Now, edit {{ic|/etc/rc.conf}} as root:<br />
<br />
# nano /etc/rc.conf<br />
<br />
Disable (!) any existing network management daemons in the DAEMONS array, including '''network''', '''dhcpcd''', and '''networkmanager'''.<br />
<br />
Now, add '''dbus''' (if not already present) and '''wicd''' to the DAEMONS array, in that order. The DAEMONS array should now look something like this:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' !network !dhcpcd !networkmanager '''wicd''' ...)<br />
<br />
Save and close. <br />
<br />
Add your account to '''network''' group:<br />
<br />
# gpasswd -a USERNAME network<br />
<br />
{{Note | The Unix group that dbus allows to access '''wicd''' is subject to change, and may be different than ''network''. Check which policy group is specified in {{ic|/etc/dbus-1/system.d/wicd.conf}}, and add your user to that group.}}<br />
<br />
Reboot your computer or start the daemons:<br />
# rc.d start dbus <br />
and finally<br />
# rc.d start wicd<br />
<br />
If you added your user to a new group, logout and then login.<br />
<br />
===Running Wicd===<br />
To load Wicd, run:<br />
<br />
$ wicd-client<br />
<br />
To force it to start minimized in the notification area, run:<br />
<br />
$ wicd-client --tray<br />
<br />
If your desktop environment does not have a notification area, run:<br />
<br />
$ wicd-client -n<br />
<br />
{{Note | The above commands will only work if you have installed the wicd-gtk package. If you did not install wicd-gtk then use wicd-cli or wicd-curses}}<br />
<br />
You can add '''wicd-client''' to your DE/WM startup to have the application start when you log in.<br />
{{Note | Some users have had an issue with two {{ic|wicd-client}} processes when using this method. There has been discussion about this in the Arch forums and Arch bug reports (see [[#External_links]]). It appears that the wicd package puts a file in {{ic|/etc/xdg/autostart/wicd-tray.desktop}}, which will autostart {{ic|wicd-client}} upon login to your DE/WM. If this is the case, you will have two {{ic|wicd-client}}s running if you add an additional {{ic|wicd-client}} to your DE/WM startup file. Should that occur, confirm that the {{ic|wicd-tray.desktop}} file exists in {{ic|/etc/xdg/autostart}}; if so, having wicd in the daemons list of {{ic|/etc/rc.conf}} is sufficient.}}<br />
<br />
You can also run wicd as a curses application from the terminal like so:<br />
<br />
$ wicd-curses<br />
<br />
{{Note | Wicd does not prompt you for a passkey. To use encrypted connections (WPA/WEP), expand the network you want to connect to, click '''Advanced''' and enter the needed info.}}<br />
<br />
==Troubleshooting==<br />
<br />
=== Failed to get IP address ===<br />
If wicd repeatedly fails to get an IP address using the default dhcpcd client, try installing and using '''dhclient''' instead:<br />
# pacman -S dhclient<br />
Do not forget to select dhclient as the primary dhcp client in wicd options afterwards!<br />
<br />
If wicd can get an IP address for a wired interface and is unable to get an IP address for a wireless interface, try disabling the wireless card's powersaving features:<br />
# iwconfig wlan0 power off<br />
<br />
=== Random disconnecting ===<br />
If dmesg says {{ic|1=wlan0: deauthenticating from MAC by local choice (reason=3)}} and you lose your wifi connection, it is likely that you have a bit too agressive powersaving on your wifi card[http://us.generation-nt.com/answer/gentoo-user-wireless-deauthenticating-by-local-choice-help-204640041.html]. Try disabling the wireless card's powersaving features:<br />
# iwconfig wlan0 power off<br />
<br />
If you have the package '''pm-utils''' installed, it may be the reason powersaving is on in your system[http://uselessuseofcat.com/?p=67]. You can put {{bc|#!/bin/sh<br />
/sbin/iwconfig wlan0 power off}} into the file /etc/pm/power.d/wireless (create it if it does not exist and make it executable) and see if things get better.<br />
<br />
If your card does not support "iwconfig wlan0 power off", check the '''BIOS''' for power management options. Disabling PCI-Express power management in bios on a Lenovo W520 resolved this issue.<br />
<br />
=== Importing pynotify failed, notifications disabled ===<br />
In case the package did not get installed automatically -- the package's name is "python-notify":<br />
# pacman -S python-notify<br />
<br />
=== Dbus connection error message ===<br />
Make sure to use the following command for your .xinitrc:<br />
exec ck-launch-session [your environment here]<br />
<br />
As an example, mine reads:<br />
exec ck-launch-session openbox-session<br />
<br />
Otherwise you will get dbus error messages and not be able to connect to networks.<br />
<br />
* '''NOTE:''' If wicd suddenly stopped working and it complains about dbus, it is quite likely that you just need to remove wicd fully, including and all its configuration files, and re-install it from scratch:<br />
pacman -R wicd<br />
rm -Rf /etc/wicd /var/log/wicd /etc/dbus-1/system.d/wicd*<br />
pacman -S wicd<br />
Check this link for more details: http://bbs.archlinux.org/viewtopic.php?pid=577141#p577141<br />
<br />
Wicd-client also throws a dbus connection error message ("Could not connect to wicd's D-Bus interface.") when wicd is not running due to a problem with a config file. It seems that sometimes an empty account gets added to /etc/wicd/wired-settings.conf in which case you simply have to remove the<br />
[] <br />
and restart wicd.<br />
<br />
===Problems after package update===<br />
Sometimes the wicd client fails to load after a package update due to dbus errors. <br />
<br />
A solution is to remove the config files in the /etc/wicd/ directory. <br />
# rc.d stop wicd<br />
# rm /etc/wicd/*.conf<br />
# rc.d start wicd<br />
<br />
===Note about graphical sudo programs===<br />
If you are receiving an error about wicd failing to find a graphical sudo program, run one of the following commands:<br />
$ ktsuss wicd-client -n<br />
<br />
$ gksudo wicd-client -n<br />
<br />
$ kdesu wicd-client -n<br />
<br />
These programs require the ktsuss (found in the AUR), gksu, and kdesu packages, respectively.<br />
<br />
===Making eduroam work with wicd===<br />
<br />
{{Note|You may try the AUR package {{AUR|wicd-eduroam}} first. It will appear in wicd as "eduroam". If it does not work for you, try the following.}}<br />
<br />
This profile will only work for eduroam institutions which use TTLS and will not work for PEAP.<br />
<br />
Save the following as /etc/wicd/encryption/templates/ttls-80211<br />
<br />
name = TTLS for Wireless<br />
author = Alexander Clouter<br />
version = 1<br />
require anon_identity *Anonymous_Username identity *Identity password *Password <br />
optional ca_cert *Path_to_CA_Cert cert_subject *Certificate_Subject<br />
-----<br />
ctrl_interface=/var/run/wpa_supplicant<br />
network={<br />
ssid="$_ESSID"<br />
scan_ssid=$_SCAN<br />
<br />
key_mgmt=WPA-EAP<br />
eap=TTLS<br />
<br />
ca_cert="$_CA_CERT"<br />
subject_match="$_CERT_SUBJECT"<br />
<br />
phase2="auth=MSCHAPv2 auth=PAP"<br />
<br />
anonymous_identity="$_ANON_IDENTITY"<br />
identity="$_IDENTITY"<br />
password="$_PASSWORD"<br />
}<br />
<br />
Open a terminal<br />
<br />
cd /etc/wicd/encryption/templates<br />
echo ttls-80211 >> active<br />
<br />
Open wicd, choose TTLS for Wireless in the properties of eduroam, and enter the appropriate settings for your institution. The format of the subject match should be something like "/CN=server.example.com".<br />
<br />
NB. This only works in my institution by commenting subject_match, which is not secure, but at least it connects.<br />
<br />
===Problem changing from wicd to another network manager===<br />
<br />
When I tried to switch back to the knetworkmanager, without uninstalling wicd, I edited /etc/rc.conf and put a '!' in front of wicd, removed it from networkmanager, rebooted and obviously wicd did not load. When I started KDE though I got a message saying that wicd-client could not start normally because wicd was not running. Wicd-client should not have started as it is not in autostart. The trick stop it from loading is to go to /etc/xdg/autostart and do:<br />
<br />
$ sudo nano wicd-tray.desktop<br />
<br />
and make it hidden on startup, or if you are not planning to autostart wicd-client again just remove the file.<br />
<br />
===Two instances of wicd-client (and possibly two icons in tray)===<br />
See the note in [[Wicd#Running_Wicd]] about the autostart file in /etc/xdg/autostart and the forum post and bug report provided in [[Wicd#External_Links]]. Essentially, if /etc/xdg/autostart/wicd-tray.desktop exists, you only need wicd in /etc/rc.conf daemons and should remove it from your DE/WM autostart file.<br />
<br />
===Bad password using PEAP with TKIP/MSCHAPV2===<br />
The connection template PEAP with TKIP/MSCHAPV2 requires the user to enter the path to a CA certificate besides entering username and password. However this can cause troubles resulting in a error message of a bad password [https://bbs.archlinux.org/viewtopic.php?pid=990385 *]. A possible solution is the usage of PEAP with GTC instead of TKIP/MSCHAPV2 which does not require to enter the path of the CA cert.<br />
<br />
==External links==<br />
*[http://www.wicd.net/download.php Note on interfaces at the official site]<br />
*[https://bbs.archlinux.org/viewtopic.php?id=114803 Forum post about two instances of wicd-client and /etc/xdg/autostart]<br />
*[https://bugs.archlinux.org/task/22423 Bug report mentioning /etc/xdg/autostart and wicd-client behavior]</div>Kportertxhttps://wiki.archlinux.org/index.php?title=User_talk:Kportertx&diff=113006User talk:Kportertx2010-07-30T22:09:37Z<p>Kportertx: </p>
<hr />
<div>Script to disable mouse on acer aspire one<br />
<br />
<pre>#!/usr/bin/python<br />
import sys, os, subprocess #, time<br />
<br />
disabled = sys.path[0] + "/disabled"<br />
if os.path.exists(disabled):<br />
os.remove(disabled)<br />
subprocess.Popen('sudo modprobe psmouse proto=imps',shell=True,stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)<br />
else:<br />
# Created disabled file<br />
subprocess.call(["touch", disabled])<br />
subprocess.Popen('sudo modprobe -r psmouse',shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)</pre></div>Kportertxhttps://wiki.archlinux.org/index.php?title=User_talk:Kportertx&diff=113005User talk:Kportertx2010-07-30T22:07:40Z<p>Kportertx: </p>
<hr />
<div>Script to disable mouse on acer aspire one<br />
<br />
<nowiki>#!/usr/bin/python<br />
import sys, os, subprocess #, time<br />
<br />
disabled = sys.path[0] + "/disabled"<br />
if os.path.exists(disabled):<br />
os.remove(disabled)<br />
subprocess.Popen('sudo modprobe psmouse proto=imps',shell=True,stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)<br />
else:<br />
# Created disabled file<br />
subprocess.call(["touch", disabled])<br />
subprocess.Popen('sudo modprobe -r psmouse',shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)</nowiki></div>Kportertxhttps://wiki.archlinux.org/index.php?title=User_talk:Kportertx&diff=113004User talk:Kportertx2010-07-30T22:06:31Z<p>Kportertx: Created page with "#!/usr/bin/python Script to disable mouse on acer aspire one import sys, os, subprocess #, time disabled = sys.path[0] + "/disabled" if os.path.exists(disabled): os.remove(..."</p>
<hr />
<div>#!/usr/bin/python<br />
Script to disable mouse on acer aspire one<br />
import sys, os, subprocess #, time<br />
<br />
disabled = sys.path[0] + "/disabled"<br />
if os.path.exists(disabled):<br />
os.remove(disabled)<br />
subprocess.Popen('sudo modprobe psmouse proto=imps',shell=True,stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)<br />
else:<br />
# Created disabled file<br />
subprocess.call(["touch", disabled])<br />
subprocess.Popen('sudo modprobe -r psmouse',shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)</div>Kportertx