2 Static IP setup

I have two static IP addresses,two Linksys WRT54G wireless routers,cable modem and a stackable hub(24 ports)
I am confused on setting up two networks with these pieces.
Someone told me to run a cable from the modem to the hub, then connect the routers to the hub.
My question is how can I set up the routers for the static IP addresses?

Hi… You would not be able to configure WRT54G with 2 Static IP’s. You need a router with 2 WAN interfaces, such as any RV or WRV series of router. Do you have 2 modems or does your modem provide 2 IP’s. Either way you can configure these routers with 2 direct WAN connections or setup One to One NAT and use the second Static IP to access any particular PC or Network Device with One to One NAT. So I would suggest get one of these router, configure it and connect the hub behind the router.

Similar Messages

  • Non-static method setUp() cannot be referenced  (error)

    Hi;
    I have this error
    "findContainer.java": non-static method setUp() cannot be referenced from a static context at line 10, column 26
    everytime i am trying to make this call
    jade.core.AddContTry.setUp();in
    public class findContainer {
      public findContainer() {}
        public void sUp(){
        System.out.println("please wait, this is first try to find he agents in the main container"+"\n");
        jade.core.AddContTry.setUp();
    this setup() method
    is written as follows
    public void AddContTry () {
    public void setUp(){
      AID[] list= null;
      try {
        MyMainContainer = myprofile.getMain();
        System.out.println("\n"+"This is the new container created in case of failure"+"\n");
        list = MyMainCont.agentNames();
        for (int i=0; i<list.length; i++){
          System.out.println("names = " + list.toString() + " \n");
    catch (ProfileException pe) { System.out.println("there is not main container");
    could you please help me?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    My guess is that it is throwing a NullPointerException because you have not set 'a' to be anything.
    The sample code you provided does not make sense.
    AddContTry is a method in the code but you are using it like a class.
    You have to set the following before you can use the object 'a'
    AddContTry a = // something
    I am just guessing here but can you write
    AddContTry a = new AddContTry();
    a.setUp();
    Note, If this is the case, the code in setUp should be in the constructor.

  • DHCP/Subnets/Static Maps setup question

    We have a unique teaching environment where we would like both employees (with laptops) and clients to be able to plug into any ethernet port in the building or be wireless. My question is, what is the best way to set things up so that employees always get the same ip and have access to the full range of services (file services, LDAP, Internet) but customers only have access to the Internet but not internal services. I have tried using static maps for employees but for some reason, customers sometimes end up getting one of the static maps intended for employees (and I have verified that all the MAC addresses are entered correctly). I am pretty new to Tiger server so any help is greatly appreciated.

    If im not mistaking your DHCP settings are overlapping with the ips you have statically assigned. To fix this reserve say 192.168.1.1-127 for static ips and let dhcp use the remainder.

  • Setup with Static IP from ISP, need help

    I'm trying to setup my WRT54G to act as my main router on my home network.  Currently, I use it as an access point behind my Sonicwall Tele3, but want to remove the Tele3 entirely because it's limited to 5 IP addresses going through it.  The trick is, I get a static IP from my ISP. 
    My Tele3 works fine and plays nice with my DSL router.  The Tele3 settings include a "WAN Gateway (Router)" address of x.x.x.49 and a "WAN IP (NAT Public)" address of x.x.x.50.  The tele3 then has a local IP address of 192.168.1.1, and so on.  What I'm struggling with is how to setup my WRT54G to act as the main router.  I've tried a Static IP setup in the "Basic Networking" section of the linksys admin console, but no matter what I try, I can't get out to the Internet.
    Thanks in advance for your advice.

    In order to setup a static WAN (Internet) IP address on your WRT54G, you will need the following info from your ISP:
    Internet IP address
    Subnet Mask
    Gateway
    and at least one DNS address
    Additionally, some users have been told that they have a "Static" Internet address, when in fact they have a PPPoE connection, and their ISP is simply giving them the same IP address each time they connect.  Please clarify with your ISP whether or not you have this.  If you have it, you will need your PPPoE
    User Name, and
    Password
    from your ISP.
    Hope this helps.
    Message Edited by toomanydonuts on 02-26-2008 01:52 AM

  • Bizarre WiFi Connectivity Issue; Self-Assigned IPs, Static IP Doesn't work

    The short and sweet of the problem: Macs/Apple Devices are pulling self-assigned IP addresses when connecting to a Linksys EA6900/AC1900 router.
    Here’s the detail: I am working at an office with 1 Airport Extreme and 1 Linksys EA6900/AC1900, both are configured for Bridge Mode and both use WPA. DHCP is being handled by a Watchguard XTM5 series firewall.
    When Macs (and often iPhones) connect to the Linksys (on 2.4 or 5Ghz) they get a self-assigned IP address. If you enter a manual address you still do not have any connectivity. However, if you connect to the Extreme you will instantly get an IP address, and if you switch to the Linksys your DHCP address will carry over and you will retain connectivity. This problem does not happen to the Windows machines in the office- they all connect to all base stations without any issue. Total users on the network range from 5 to 20 WiFi users at any given time plus and AppleTV (also affected).
    More info: When there are between 5-10 people in the conference room for a morning meeting the Macs will all revert to self-assigned addresses (even if they were working before). The workaround has been to connect to the Extreme, but there are occasions when this occurs that the Extreme will also not seem to pass the DHCP addresses from the firewall; addresses become self-assigned and you lose all internet. To make matters more odd, this behavior seems to really only affect the network during business hours; after hours the Linksys works pretty much normally and any device can connect without issue.
    Things I’ve done: Run Wireshark and located a number of rogue devices that were handing out overlapping DHCP addresses. Identified machines that were ARP storming and removed them. Expanded the DHCP pool so that we aren’t running out of addresses and confirmed that we had enough by checking the logs.
    More things I’ve done: Used Netspot to check signal strength and channel overlap and isolation. I have mapped the signal strength by location and we have strong signals to the various locations (the Linksys AP is 7 feet from the conference room). I have checked that the firmware is the most recent version.
    I can’t find any logical reason for the Macs (and pretty much only the Macs/Apple devices) to not be picking up DHCP info through the bridge mode devices. I would tell them to get another Extreme but they are going to be deploying a Cisco Meraki system soon and I suspect that this problem will persist since the Linksys was put in place because the last AP displayed the same behavior with the Macs picking up self-assigned IPs. Affected Macs range from 2010 era MBP and Air to 2013 MBP and Air and they are running OSX 10.8 through 10.10.
    As for the history of this network, I just walked into this company and know very little about how well it worked before, but apparently it has always been flaky according to the staff.

    I agree that something isn't right; I am going to cut over DHCP services from the Watchguard to the newly deployed OS X Server tonight and see  if that changes anything.
    On the other hand, faulty DHCP server/client settings doesn't explain why applying a static IP still leaves you with no connectivity. I think that clue is also fairly important but I can't figure out what would be blocking connectivity on a static IP setup.

  • Dynamic to Static VPN dies after about 4 minutes

    Hey everyone, I have an interesting issue with a dynamic to static VPN setup. I currently run a pair of Cisco Pix 515e firewalls in a failover setup. They are running OS 8.0.4 and they run great. I used to have a VPN between these and my office where the remote office had a static IP address. I am moving that to a new connection which uses dynamic IP addresses.
    I setup a pre-shared key on the DefaultL2LGroup on the Pix and removed the existing static tunnel-group. I also reconfigured the remote firewall which is a Netgear firewall to connect to the Pix. It is still using main mode and the rest of the setup is pretty much the same.
    The VPN connection establishes fine and I can pass traffic through it with no issues. The problem is that every 3 minutes and 50 seconds, the VPN will go down for a few seconds. It looks like it rekeys. My stuff will stop responding and then it will re-establish and it is fine. It happens every 3 minutes and 50 seconds like clockwork.
    I have checked everything I could think of and am not sure where the issue is. I know I can do detailed debugs on the IPSec but am not sure what I should be looking there. The basic debug just givs the generic message below that says the tunnel can't communicate with the peer. I have seen that message before but not usually with a VPN that establishes. Generally if this message comes up, the tunnel never works.
    Any ideas would be great.
    Thanks
    Neal
    Group = DefaultL2LGroup, IP = X.X.X.X, Removing peer from peer table failed, no match!
    Group = DefaultL2LGroup, IP = X.X.X.X, Error: Unable to remove PeerTblEntry

    I did more testing and it seems that the tunnel sites at the MM_ACTIVE state and doesn't go past that. The information is the same on both ends of the tunnel and traffic passes fine when at this state but then it rekeys after about 4 minutes and starts again.
    I tried changing the tunnel to an Aggresive Mode tunnel but using a name for the remote office firewall ID and now it sits at AM_ACTIVE but doesn't go past that point either.

  • Can't set ipv6 static address

    As the topic states, I can not setup a static IP to save my life. I've enabled ipv6, I have a hostname6.ce1 I put the hostname (madrid-ipv6) in the hostname6.ce1 file but it will not stay set.
    I've tried the addif command, and it creates a logical interface, but I can't ping out with the address that is set.
    I'm sure I am missing something, and I am new to Solaris. I've got ipv6 static addresses setup in linux with no problems. It's just Solaris 10 that is kicking my butt.
    If anyone can point me in the right direction I would be in your debt.
    Thanks!

    edit: To darren: I've tried that as well. When the system boots, it gives me the error: "Failed to assign ipv6 address to ce1" or something similar to that.
    hmmm, I've tried that, it still doesn't seem to be working. Here is my hostname6.ce1 file:
    madrid-ipv6
    addif fd01::e2/64 up
    this is the output of ifconfig -a6:
    bash-3.00# ifconfig -a6
    lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
    inet6 ::1/128
    ce0: flags=2004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 2
    inet6 fe80::203:baff:fe9b:92d/10
    ether 0:3:ba:9b:9:2d
    ce1: flags=2000840<RUNNING,MULTICAST,IPv6> mtu 1500 index 3
    inet6 fe80::203:baff:fe9b:92d/10
    ether 0:3:ba:9b:9:2d
    ce1:1: flags=2000841<UP,RUNNING,MULTICAST,IPv6> mtu 1500 index 3
    inet6 fd01::e2/64
    and this is what I get when I ping fd01::f2:
    bash-3.00# ping fd01::f2
    ICMPv6 Address Unreachable from gateway fd01::e2
    for icmp6 from fd01::e2 to fd01::f2
    ICMPv6 Address Unreachable from gateway fd01::e2
    for icmp6 from fd01::e2 to fd01::f2
    ICMPv6 Address Unreachable from gateway fd01::e2
    for icmp6 from fd01::e2 to fd01::f2
    I've got to be missing something. This is all on a private switch that doesn't need to connect to the net. I need to connect an iscsi VTL to this sun system but the first step is to be able to ping the damn thing. I've checked the networking to make sure everything is connected. I can ping the VTL using IPV4, but not IPV6. I've checked on a linux system and it can ping the VTL over IPV6 so I know it is setup properly. This is just driving me nuts.
    Edited by: jonwheeler on Sep 11, 2008 9:47 AM

  • WRT610N & Static IP?

    I've been running at WRT54g with no issues using my static IP on Comporium with a Arris Cable Modem (TM402G/11).  I want to do some HD streaming so I'm trying to upgrade to wireless N and bought a WRT610N... the static IP setup screen is pretty much identiical to the 54g, so I figured this would be a snap... no such luck.  I lost a day trying to make this work and then after 2 hours on the phone with support, replaced it with a new model (support citing hardware problems).  The replacement has the exact same behavior. 
    I can never get out to the net.... I cannot ping an external IP address at all.  DHCP issues an address just fine.  Internal network commuicaiton works fiine.  I've check and double checked my static IP and DNS settings.  I'm running the latest firmware (came installed).  I've re-flashed the firmware.  I can unplug the internet cable from th e610 and stick it in the 54g (same static settings) and it works fine.
    Is there something with the 610 I need to do that I'm missing?
    The only thing I can figure it some type of incompaitibility with the Arris Cable Modem....  I'm stumped and don't know what else to do by return this thing.
    Thanks,
    Reed

    Well you might be receiving low wireless signal strength on your computer, due to the Default Wireless Settings set on your Router....
    Login to the Router setup page and click on the Wireless tab... and below select the Option "Manual Configration" and below change the - Provide a unique name in the Wireless Network Name (SSID) box in order to differentiate your network from your neighbors network...
    - Set the Radio Band to Standard-20MHz and change the Standard channel to 11-2.462GHz...Wireless SSID broadcast should be Enabled and then click on Save Settings...
    Please make a note of Wireless Network Name (SSID) as this is the Network Identifier...
    For Wireless Security : -
    Click on the Sub tab under Wireless > Wireless Security...
    Change the Wireless security mode to WPA, For Encryption, select TKIP...For Passphrase input your desired WPA Key. For example , MySecretKey , This will serve as your network key whenever you connect to your wireless network. Do NOT give this key to anyone and remember the key.
    NOTE : Passphrase should be more that 8 characters...
    Now see if you can locate your Wireless Network and attempt to connect...

  • Assigng WRT54G a static IP

    I recently purchased a new WRTG54G2 to replace an old one that finally died.  I am trying to set it up like the old one, but without access to the configs, I don't know exactly how I did it before.  Here's what I've got.
    Cable Modem --> Dedicated Firewall/Gateway Machine (192.168.0.1) --> switch --> other equipment (for a visual you can see this link )
    Other equipment is hardwired PC's, and the wireless router.   The wireless router needs to be assigned a static IP Address of 192.168.0.50.  It needs to go through the dedicated firewall/gateway (192.168.0.1).  The DHCP Service will be turned off.
    I know that this is possible, however, for the life of me...I can't figure out how I did it before.  In the web interface I can staticlly assign the wireless router an ip of 192.168.0.50 via the automatic configuration (DHCP).  But, if i go into the Static IP setup, change teh IP Address to 192.168.0.50, it won't work (IE, the only 'static ip' is the Local IP Address under Network Setup/Router IP).
    Any suggestions for how I can do this?  It's driving me nuts being able to access only the web interface page.
    Thanks muchly
    Jon
    Solved!
    Go to Solution.

    And I managed to solve my problem by following the steps at this site.

  • [SOLVED] IBM Thinkpad 600E 3.6.11-1 rt73usb weird wireless issue.

    Hi guys and gals.
    I have been researching this for 3 days now. I have also asked at the #Archlinux channel but they don't seem to know the answer and I cannot seem to find anything relevant... so here goes nothing.
    I have this Belkin rt73usb card - it's connected to this SUPER OLD Thinkpad 600E machine and it's associated always with only 1 router - static IP setup - basically laptop is stationary / not moved. I had little problems with connecting it to the network at boot time but thanks to Boohbah from #Archlinux channel and a bit of research I got it to connect http://sparewotw.wordpress.com/2013/01/ … boot-time/ and to turn off power management and to keep the rate as "fixed" - works well BUT... I have a problem with it - the connection stays up - I can browse the internet from the thinkpad / I can access the sshfs share on my server (from thinkpad) and so on but after a while sshd port - 50505 in my case - goes from open into filtered and I cannot connect to it anymore. Example - rebooted thinkpad - i can connect - thinkpad was left alone for lets say sometimes 10 minutes - sometimes an hour - connection is active but I cannot ssh to the machine anymore.
    I have been running shorewall as a firewall and I said maybe it's a shorewall bug but then I ran as root shorewall clear and it didn't solved it, disabling shorewall or restarting didn't help, restarting sshd service didn't help only restarting the wlan0 service / connection re-opens the port... Any ideas?
    All I get is "No route to host" and when I nmap the port it's not open anymore... it says filtered without firewall enabled / active...
    The connecting method has nothing to do with failures as netcfg (which started connecting at boot time after adding pci=noacpi to the boot time kernel parameters) is doing the exact same thing...
    Also when powermanagement was on and the rate was not fixed the problem was still occuring...
    Connection info is available at the link mentioned above.
    Some more technical data:
    lspci -k
    [root@wishthinkpad andrzejl]# lspci -k
    00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03)
    Kernel driver in use: agpgart-intel
    00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03)
    00:02.0 CardBus bridge: Texas Instruments PCI1251A
    Subsystem: IBM Device 00eb
    Kernel driver in use: yenta_cardbus
    00:02.1 CardBus bridge: Texas Instruments PCI1251A
    Subsystem: IBM Device 00eb
    Kernel driver in use: yenta_cardbus
    00:06.0 Multimedia audio controller: Cirrus Logic CS 4610/11 [CrystalClear SoundFusion Audio Accelerator] (rev 01)
    Subsystem: IBM CS4610 SoundFusion Audio Accelerator
    00:07.0 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 02)
    00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
    Kernel driver in use: ata_piix
    00:07.2 USB controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01)
    Kernel driver in use: uhci_hcd
    00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 02)
    01:00.0 VGA compatible controller: Neomagic Corporation NM2200 [MagicGraph 256AV] (rev 12)
    Subsystem: IBM ThinkPad 570
    [root@wishthinkpad andrzejl]#
    lscpi -vvv
    [root@wishthinkpad andrzejl]# lspci -vvv
    00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03)
    Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
    Latency: 64
    Region 0: Memory at 40000000 (32-bit, prefetchable) [size=64M]
    Capabilities: [a0] AGP version 1.0
    Status: RQ=32 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW- AGP3- Rate=x1,x2
    Command: RQ=1 ArqSz=0 Cal=0 SBA- AGP- GART64- 64bit- FW- Rate=<none>
    Kernel driver in use: agpgart-intel
    00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03) (prog-if 00 [Normal decode])
    Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap- 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 168
    Bus: primary=00, secondary=01, subordinate=01, sec-latency=176
    I/O behind bridge: 0000d000-0000dfff
    Memory behind bridge: 70000000-dfffffff
    Prefetchable memory behind bridge: e0000000-f7ffffff
    Secondary status: 66MHz+ FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ <SERR- <PERR+
    BridgeCtl: Parity- SERR- NoISA- VGA+ MAbort- >Reset- FastB2B+
    PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
    00:02.0 CardBus bridge: Texas Instruments PCI1251A
    Subsystem: IBM Device 00eb
    Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 168, Cache Line Size: 64 bytes
    Interrupt: pin A routed to IRQ 11
    Region 0: Memory at 50102000 (32-bit, non-prefetchable) [size=4K]
    Bus: primary=00, secondary=02, subordinate=05, sec-latency=176
    Memory window 0: 1c000000-1fffffff (prefetchable)
    Memory window 1: 20000000-23ffffff
    I/O window 0: 00001000-000010ff
    I/O window 1: 00001400-000014ff
    BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset+ 16bInt+ PostWrite+
    16-bit legacy interface ports at 0001
    Kernel driver in use: yenta_cardbus
    00:02.1 CardBus bridge: Texas Instruments PCI1251A
    Subsystem: IBM Device 00eb
    Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 168, Cache Line Size: 64 bytes
    Interrupt: pin B routed to IRQ 11
    Region 0: Memory at 50101000 (32-bit, non-prefetchable) [size=4K]
    Bus: primary=00, secondary=06, subordinate=09, sec-latency=176
    Memory window 0: 24000000-27ffffff (prefetchable)
    Memory window 1: 28000000-2bffffff
    I/O window 0: 00001800-000018ff
    I/O window 1: 00001c00-00001cff
    BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset+ 16bInt+ PostWrite+
    16-bit legacy interface ports at 0001
    Kernel driver in use: yenta_cardbus
    00:06.0 Multimedia audio controller: Cirrus Logic CS 4610/11 [CrystalClear SoundFusion Audio Accelerator] (rev 01)
    Subsystem: IBM CS4610 SoundFusion Audio Accelerator
    Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
    Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 32 (1000ns min, 6000ns max)
    Interrupt: pin A routed to IRQ 9
    Region 0: Memory at 50100000 (32-bit, non-prefetchable) [size=4K]
    Region 1: Memory at 50000000 (32-bit, non-prefetchable) [size=1M]
    00:07.0 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 02)
    Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 0
    00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01) (prog-if 80 [Master])
    Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 48
    Region 0: [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
    Region 1: [virtual] Memory at 000003f0 (type 3, non-prefetchable)
    Region 2: [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
    Region 3: [virtual] Memory at 00000370 (type 3, non-prefetchable)
    Region 4: I/O ports at fcf0 [size=16]
    Kernel driver in use: ata_piix
    00:07.2 USB controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01) (prog-if 00 [UHCI])
    Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 48
    Interrupt: pin D routed to IRQ 11
    Region 4: I/O ports at 8400 [size=32]
    Kernel driver in use: uhci_hcd
    00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 02)
    Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Interrupt: pin ? routed to IRQ 9
    01:00.0 VGA compatible controller: Neomagic Corporation NM2200 [MagicGraph 256AV] (rev 12) (prog-if 00 [VGA controller])
    Subsystem: IBM ThinkPad 570
    Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 128 (4000ns min, 63750ns max)
    Interrupt: pin A routed to IRQ 11
    Region 0: Memory at e0000000 (32-bit, prefetchable) [size=16M]
    Region 1: Memory at 70000000 (32-bit, non-prefetchable) [size=4M]
    Region 2: Memory at 70400000 (32-bit, non-prefetchable) [size=1M]
    Expansion ROM at <unassigned> [disabled]
    Capabilities: [dc] Power Management version 1
    Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
    Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
    [root@wishthinkpad andrzejl]#
    inxi -v7
    [root@wishthinkpad andrzejl]# inxi -v7
    System: Host: wishthinkpad.loc Kernel: 3.6.11-1-ARCH i686 (32 bit, gcc: 4.7.2)
    Desktop: N/A info: lxpanel dm: lxdm Distro: Arch Linux
    Machine: Mobo: IBM model: 26458A0 serial: J197K75421N Bios: IBM version: INET24WW date: 05/24/1999
    CPU: Single core Mobile Pentium II (-UP-) cache: 256 KB flags: (-) bmips: 728.23 clocked at 363.955 MHz
    Graphics: Card: Neomagic NM2200 [MagicGraph 256AV] bus-ID: 01:00.0 chip-ID: 10c8:0005
    X.org: 1.13.1 driver: neomagic tty size: 116x32 Advanced Data: N/A for root
    Audio: Card: Cirrus Logic CS 4610/11 [CrystalClear SoundFusion Audio Accelerator]
    driver: CS4239 bus-ID: 00:06.0 chip-ID: 1013:6001
    Sound: Advanced Linux Sound Architecture ver: 1.0.25
    Network: Card: Ralink RT2501/RT2573 Wireless Adapter driver: rt73usb ver: 2.3.0 usb-ID: 001-003 chip-ID: 148f:2573
    IF: wlan0 state: up mac: 00:0e:2e:f4:db:4c
    WAN IP: None Detected! IF: wlan0 ip: 192.168.0.102 ip-v6: N/A
    Drives: HDD Total Size: 40.0GB (84.5% used)
    1: id: /dev/sda model: TOSHIBA_MK4032GA size: 40.0GB serial: 66SJ8501S
    Optical: /dev/sr0 model: N/A rev: N/A dev-links: cdrom
    Features: speed: 24x multisession: yes audio: yes dvd: yes rw: cd-r,cd-rw state: N/A
    Partition: ID: / size: 9.4G used: 6.9G (77%) fs: ext4 dev: /dev/sda1
    label: N/A uuid: 350fa8e9-36fb-4927-abaf-91f4b958a679
    ID: /media/Extra size: 26G used: 24G (99%) fs: ext4 dev: /dev/sda7
    label: Data uuid: e4eb21d7-8ea8-4059-b44b-778690e44675
    ID: /home size: 1004M used: 834M (88%) fs: ext4 dev: /dev/sda6
    label: N/A uuid: 567947ca-cba3-42e4-9677-e9ddeecd2c26
    ID: swap-1 size: 1.02GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
    label: N/A uuid: 0a64bde1-82c3-4cfb-ab68-7178564d8ed5
    RAID: No RAID data available - /proc/mdstat is missing - is md_mod kernel module loaded?
    Unmounted: ID: /dev/sr0 size: 1.07G label: N/A uuid: N/A
    Sensors: System Temperatures: cpu: 60.8C mobo: 24.8C
    Fan Speeds (in rpm): cpu: N/A
    Info: Processes: 85 Uptime: 5 min Memory: 65.5/404.5MB Runlevel: 5 Gcc sys: 4.7.2
    Client: Shell (bash 4.2.42) inxi: 1.8.26
    [root@wishthinkpad andrzejl]#
    lsmod
    [root@wishthinkpad andrzejl]# lsmod
    Module Size Used by
    fuse 60479 4
    ablk_helper 1529 0
    cryptd 7390 1 ablk_helper
    aes_i586 6980 1
    aes_generic 26055 1 aes_i586
    arc4 1604 2
    rt73usb 22629 0
    rt2x00usb 7823 1 rt73usb
    rt2x00lib 32012 2 rt73usb,rt2x00usb
    mac80211 367308 2 rt2x00lib,rt2x00usb
    cfg80211 153457 2 mac80211,rt2x00lib
    rfkill 12569 2 cfg80211
    ppdev 4751 0
    crc_itu_t 1096 1 rt73usb
    joydev 7696 0
    ac 1893 0
    battery 5691 0
    microcode 8922 0
    irda 91023 0
    parport_pc 26474 0
    parport 26032 2 ppdev,parport_pc
    ns558 1832 0
    video 9964 0
    crc_ccitt 1096 1 irda
    gameport 6265 2 ns558
    pcmcia 31186 0
    fan 1999 0
    thermal 6660 0
    intel_agp 8593 1
    psmouse 71891 0
    shpchp 22302 0
    intel_gtt 12212 1 intel_agp
    i2c_piix4 7288 0
    yenta_socket 18841 0
    processor 24040 1
    pci_hotplug 20151 1 shpchp
    agpgart 21936 2 intel_agp,intel_gtt
    pcmcia_rsrc 8809 1 yenta_socket
    serio_raw 3714 0
    button 3711 0
    i2c_core 16944 1 i2c_piix4
    evdev 7663 8
    pcmcia_core 10242 3 pcmcia,pcmcia_rsrc,yenta_socket
    ext4 402657 3
    crc16 1092 1 ext4
    jbd2 66384 1 ext4
    mbcache 4387 1 ext4
    hid_generic 710 0
    usbhid 32211 0
    hid 68226 2 hid_generic,usbhid
    sr_mod 13149 0
    cdrom 30345 1 sr_mod
    sd_mod 27312 5
    ata_generic 2435 0
    pata_acpi 2400 0
    ata_piix 19705 4
    libata 146129 3 pata_acpi,ata_generic,ata_piix
    uhci_hcd 19841 0
    usbcore 126796 4 uhci_hcd,rt73usb,rt2x00usb,usbhid
    scsi_mod 113073 3 libata,sd_mod,sr_mod
    usb_common 623 1 usbcore
    floppy 48487 0
    snd_cs4236 22145 0
    snd_mpu401_uart 4944 1 snd_cs4236
    snd_rawmidi 14983 1 snd_mpu401_uart
    snd_opl3_lib 7187 1 snd_cs4236
    snd_hwdep 4843 1 snd_opl3_lib
    snd_seq_device 4285 2 snd_rawmidi,snd_opl3_lib
    snd_wss_lib 18180 1 snd_cs4236
    snd_pcm 61958 2 snd_wss_lib,snd_cs4236
    snd_page_alloc 5902 2 snd_wss_lib,snd_pcm
    snd_timer 14903 3 snd_wss_lib,snd_pcm,snd_opl3_lib
    snd 45098 9 snd_hwdep,snd_timer,snd_wss_lib,snd_pcm,snd_rawmidi,snd_mpu401_uart,snd_seq_device,snd_cs4236,snd_opl3_lib
    soundcore 4379 1 snd
    [root@wishthinkpad andrzejl]#
    lsusb -v
    [root@wishthinkpad andrzejl]# lsusb -v
    Bus 001 Device 002: ID 058f:9254 Alcor Micro Corp. Hub
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 1.10
    bDeviceClass 9 Hub
    bDeviceSubClass 0 Unused
    bDeviceProtocol 0 Full speed (or root) hub
    bMaxPacketSize0 8
    idVendor 0x058f Alcor Micro Corp.
    idProduct 0x9254 Hub
    bcdDevice 3.12
    iManufacturer 1 ALCOR
    iProduct 2 Generic USB Hub
    iSerial 0
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 25
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xe0
    Self Powered
    Remote Wakeup
    MaxPower 100mA
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 1
    bInterfaceClass 9 Hub
    bInterfaceSubClass 0 Unused
    bInterfaceProtocol 0 Full speed (or root) hub
    iInterface 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x81 EP 1 IN
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0001 1x 1 bytes
    bInterval 255
    Hub Descriptor:
    bLength 9
    bDescriptorType 41
    nNbrPorts 4
    wHubCharacteristic 0x0009
    Per-port power switching
    Per-port overcurrent protection
    bPwrOn2PwrGood 22 * 2 milli seconds
    bHubContrCurrent 100 milli Ampere
    DeviceRemovable 0x00
    PortPwrCtrlMask 0xff
    Hub Port Status:
    Port 1: 0000.0103 power enable connect
    Port 2: 0000.0303 lowspeed power enable connect
    Port 3: 0000.0100 power
    Port 4: 0000.0100 power
    Device Status: 0x0001
    Self Powered
    Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 1.10
    bDeviceClass 9 Hub
    bDeviceSubClass 0 Unused
    bDeviceProtocol 0 Full speed (or root) hub
    bMaxPacketSize0 64
    idVendor 0x1d6b Linux Foundation
    idProduct 0x0001 1.1 root hub
    bcdDevice 3.06
    iManufacturer 3 Linux 3.6.11-1-ARCH uhci_hcd
    iProduct 2 UHCI Host Controller
    iSerial 1 0000:00:07.2
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 25
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xe0
    Self Powered
    Remote Wakeup
    MaxPower 0mA
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 1
    bInterfaceClass 9 Hub
    bInterfaceSubClass 0 Unused
    bInterfaceProtocol 0 Full speed (or root) hub
    iInterface 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x81 EP 1 IN
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0002 1x 2 bytes
    bInterval 255
    Hub Descriptor:
    bLength 9
    bDescriptorType 41
    nNbrPorts 2
    wHubCharacteristic 0x000a
    No power switching (usb 1.0)
    Per-port overcurrent protection
    bPwrOn2PwrGood 1 * 2 milli seconds
    bHubContrCurrent 0 milli Ampere
    DeviceRemovable 0x00
    PortPwrCtrlMask 0xff
    Hub Port Status:
    Port 1: 0000.0103 power enable connect
    Port 2: 0000.0100 power
    Device Status: 0x0001
    Self Powered
    Bus 001 Device 003: ID 148f:2573 Ralink Technology, Corp. RT2501/RT2573 Wireless Adapter
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 2.00
    bDeviceClass 0 (Defined at Interface level)
    bDeviceSubClass 0
    bDeviceProtocol 0
    bMaxPacketSize0 64
    idVendor 0x148f Ralink Technology, Corp.
    idProduct 0x2573 RT2501/RT2573 Wireless Adapter
    bcdDevice 0.01
    iManufacturer 1 Ralink
    iProduct 2 802.11 bg WLAN
    iSerial 0
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 32
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0x80
    (Bus Powered)
    MaxPower 300mA
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 2
    bInterfaceClass 255 Vendor Specific Class
    bInterfaceSubClass 255 Vendor Specific Subclass
    bInterfaceProtocol 255 Vendor Specific Protocol
    iInterface 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x81 EP 1 IN
    bmAttributes 2
    Transfer Type Bulk
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0040 1x 64 bytes
    bInterval 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x01 EP 1 OUT
    bmAttributes 2
    Transfer Type Bulk
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0040 1x 64 bytes
    bInterval 0
    Device Qualifier (for other device speed):
    bLength 10
    bDescriptorType 6
    bcdUSB 2.00
    bDeviceClass 0 (Defined at Interface level)
    bDeviceSubClass 0
    bDeviceProtocol 0
    bMaxPacketSize0 64
    bNumConfigurations 1
    Device Status: 0x0000
    (Bus Powered)
    Bus 001 Device 004: ID 04fc:0538 Sunplus Technology Co., Ltd Wireless Optical Mouse 2.4G [Bright]
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 1.10
    bDeviceClass 0 (Defined at Interface level)
    bDeviceSubClass 0
    bDeviceProtocol 0
    bMaxPacketSize0 8
    idVendor 0x04fc Sunplus Technology Co., Ltd
    idProduct 0x0538 Wireless Optical Mouse 2.4G [Bright]
    bcdDevice 1.10
    iManufacturer 1 MLK
    iProduct 2 Silvercrest OM1008
    iSerial 0
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 34
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 4 HID RF Receiver
    bmAttributes 0xa0
    (Bus Powered)
    Remote Wakeup
    MaxPower 100mA
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 1
    bInterfaceClass 3 Human Interface Device
    bInterfaceSubClass 1 Boot Interface Subclass
    bInterfaceProtocol 2 Mouse
    iInterface 5 EP1 Interrupt
    HID Device Descriptor:
    bLength 9
    bDescriptorType 33
    bcdHID 1.10
    bCountryCode 0 Not supported
    bNumDescriptors 1
    bDescriptorType 34 Report
    wDescriptorLength 114
    Report Descriptors:
    ** UNAVAILABLE **
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x81 EP 1 IN
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0008 1x 8 bytes
    bInterval 10
    Device Status: 0x0000
    (Bus Powered)
    [root@wishthinkpad andrzejl]#
    iwconfig
    [root@wishthinkpad andrzejl]# iwconfig
    wlan0 IEEE 802.11bg ESSID:"Arch_Linux_User"
    Mode:Managed Frequency:2.412 GHz Access Point: 00:18:39:A0:DB:3E
    Bit Rate=54 Mb/s Tx-Power=20 dBm
    Retry long limit:7 RTS thr:off Fragment thr:off
    Encryption key:off
    Power Management:off
    Link Quality=64/70 Signal level=-46 dBm
    Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
    Tx excessive retries:0 Invalid misc:5 Missed beacon:0
    lo no wireless extensions.
    [root@wishthinkpad andrzejl]#
    ifconfig
    [root@wishthinkpad andrzejl]# ifconfig
    lo: flags=73<UP,LOOPBACK,RUNNING> mtu 16436
    inet 127.0.0.1 netmask 255.0.0.0
    loop txqueuelen 0 (Local Loopback)
    RX packets 526 bytes 275160 (268.7 KiB)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 526 bytes 275160 (268.7 KiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
    wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    inet 192.168.0.102 netmask 255.255.255.0 broadcast 192.168.0.255
    ether 00:0e:2e:f4:db:4c txqueuelen 1000 (Ethernet)
    RX packets 1590 bytes 381744 (372.7 KiB)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 1238 bytes 194926 (190.3 KiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
    [root@wishthinkpad andrzejl]#
    dmesg right after reboot when it works
    [root@wishthinkpad andrzejl]# dmesg
    [ 0.000000] Initializing cgroup subsys cpuset
    [ 0.000000] Initializing cgroup subsys cpu
    [ 0.000000] Linux version 3.6.11-1-ARCH (tobias@testing) (gcc version 4.7.2 (GCC) ) #1 SMP PREEMPT Tue Dec 18 12:58:46 CET 2012
    [ 0.000000] e820: BIOS-provided physical RAM map:
    [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
    [ 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
    [ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
    [ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x0000000019fcffff] usable
    [ 0.000000] BIOS-e820: [mem 0x0000000019fd0000-0x0000000019fdefff] ACPI data
    [ 0.000000] BIOS-e820: [mem 0x0000000019fdf000-0x0000000019fdffff] ACPI NVS
    [ 0.000000] BIOS-e820: [mem 0x0000000019fe0000-0x0000000019ffffff] reserved
    [ 0.000000] BIOS-e820: [mem 0x00000000fffe0000-0x00000000ffffffff] reserved
    [ 0.000000] Malformed early option 'apic'
    [ 0.000000] Malformed early option 'apic'
    [ 0.000000] Notice: NX (Execute Disable) protection missing in CPU!
    [ 0.000000] DMI 2.2 present.
    [ 0.000000] DMI: IBM 26458A0/26458A0, BIOS INET24WW 05/24/1999
    [ 0.000000] e820: update [mem 0x00000000-0x0000ffff] usable ==> reserved
    [ 0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable
    [ 0.000000] e820: last_pfn = 0x19fd0 max_arch_pfn = 0x100000
    [ 0.000000] MTRR default type: uncachable
    [ 0.000000] MTRR fixed ranges enabled:
    [ 0.000000] 00000-9FFFF write-back
    [ 0.000000] A0000-BFFFF uncachable
    [ 0.000000] C0000-CBFFF write-protect
    [ 0.000000] CC000-EFFFF uncachable
    [ 0.000000] F0000-FFFFF write-protect
    [ 0.000000] MTRR variable ranges enabled:
    [ 0.000000] 0 base 000000000 mask FF0000000 write-back
    [ 0.000000] 1 base 010000000 mask FF8000000 write-back
    [ 0.000000] 2 base 018000000 mask FFE000000 write-back
    [ 0.000000] 3 disabled
    [ 0.000000] 4 disabled
    [ 0.000000] 5 disabled
    [ 0.000000] 6 disabled
    [ 0.000000] 7 disabled
    [ 0.000000] PAT not supported by CPU.
    [ 0.000000] initial memory mapped: [mem 0x00000000-0x01bfffff]
    [ 0.000000] Base memory trampoline at [c009b000] 9b000 size 16384
    [ 0.000000] init_memory_mapping: [mem 0x00000000-0x19fcffff]
    [ 0.000000] [mem 0x00000000-0x003fffff] page 4k
    [ 0.000000] [mem 0x00400000-0x19bfffff] page 2M
    [ 0.000000] [mem 0x19c00000-0x19fcffff] page 4k
    [ 0.000000] kernel direct mapping tables up to 0x19fcffff @ [mem 0x01bfa000-0x01bfffff]
    [ 0.000000] RAMDISK: [mem 0x18c36000-0x18f14fff]
    [ 0.000000] IBM Thinkpad 600 Series 2645 detected: force use of acpi=noirq
    [ 0.000000] ACPI: RSDP 000fd6e0 00014 (v00 IBM )
    [ 0.000000] ACPI: RSDT 19fd0000 00028 (v01 IBM TP600R 00000001 00000000)
    [ 0.000000] ACPI: FACP 19fd0100 00074 (v01 IBM TP600R 00000001 00000000)
    [ 0.000000] ACPI: DSDT 19fd0200 0B501 (v01 IBM TP600R 0000001D MSFT 0100000B)
    [ 0.000000] ACPI: FACS 19fdf000 00040
    [ 0.000000] 0MB HIGHMEM available.
    [ 0.000000] 415MB LOWMEM available.
    [ 0.000000] mapped low ram: 0 - 19fd0000
    [ 0.000000] low ram: 0 - 19fd0000
    [ 0.000000] Zone ranges:
    [ 0.000000] DMA [mem 0x00010000-0x00ffffff]
    [ 0.000000] Normal [mem 0x01000000-0x19fcffff]
    [ 0.000000] HighMem empty
    [ 0.000000] Movable zone start for each node
    [ 0.000000] Early memory node ranges
    [ 0.000000] node 0: [mem 0x00010000-0x0009efff]
    [ 0.000000] node 0: [mem 0x00100000-0x19fcffff]
    [ 0.000000] On node 0 totalpages: 106335
    [ 0.000000] free_area_init_node: node 0, pgdat c155acc0, node_mem_map d9c8f200
    [ 0.000000] DMA zone: 32 pages used for memmap
    [ 0.000000] DMA zone: 0 pages reserved
    [ 0.000000] DMA zone: 3951 pages, LIFO batch:0
    [ 0.000000] Normal zone: 800 pages used for memmap
    [ 0.000000] Normal zone: 101552 pages, LIFO batch:31
    [ 0.000000] Using APIC driver default
    [ 0.000000] ACPI: PM-Timer IO Port: 0xef08
    [ 0.000000] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
    [ 0.000000] Local APIC disabled by BIOS -- reenabling.
    [ 0.000000] Could not enable APIC!
    [ 0.000000] APIC: disable apic facility
    [ 0.000000] APIC: switched to apic NOOP
    [ 0.000000] nr_irqs_gsi: 16
    [ 0.000000] PM: Registered nosave memory: 000000000009f000 - 00000000000a0000
    [ 0.000000] PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
    [ 0.000000] PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
    [ 0.000000] e820: [mem 0x1a000000-0xfffdffff] available for PCI devices
    [ 0.000000] Booting paravirtualized kernel on bare hardware
    [ 0.000000] setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:1 nr_node_ids:1
    [ 0.000000] PERCPU: Embedded 13 pages/cpu @d9c7e000 s32384 r0 d20864 u53248
    [ 0.000000] pcpu-alloc: s32384 r0 d20864 u53248 alloc=13*4096
    [ 0.000000] pcpu-alloc: [0] 0
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 105503
    [ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=350fa8e9-36fb-4927-abaf-91f4b958a679 ro quiet pci=noacpi lapic apic acpi=noirq apm=on pci=use_crs
    [ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    [ 0.000000] __ex_table already sorted, skipping sort
    [ 0.000000] Initializing CPU#0
    [ 0.000000] allocated 851456 bytes of page_cgroup
    [ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
    [ 0.000000] Initializing HighMem for node 0 (00000000:00000000)
    [ 0.000000] Memory: 410744k/425792k available (3974k kernel code, 14596k reserved, 1545k data, 536k init, 0k highmem)
    [ 0.000000] virtual kernel memory layout:
    fixmap : 0xfff16000 - 0xfffff000 ( 932 kB)
    pkmap : 0xff800000 - 0xffc00000 (4096 kB)
    vmalloc : 0xda7d0000 - 0xff7fe000 ( 592 MB)
    lowmem : 0xc0000000 - 0xd9fd0000 ( 415 MB)
    .init : 0xc1564000 - 0xc15ea000 ( 536 kB)
    .data : 0xc13e18b2 - 0xc1563fc0 (1545 kB)
    .text : 0xc1000000 - 0xc13e18b2 (3974 kB)
    [ 0.000000] Checking if this processor honours the WP bit even in supervisor mode...Ok.
    [ 0.000000] SLUB: Genslabs=15, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [ 0.000000] Preemptible hierarchical RCU implementation.
    [ 0.000000] RCU dyntick-idle grace-period acceleration is enabled.
    [ 0.000000] Dump stacks of tasks blocking RCU-preempt GP.
    [ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
    [ 0.000000] NR_IRQS:2304 nr_irqs:256 16
    [ 0.000000] CPU 0 irqstacks, hard=d9408000 soft=d940a000
    [ 0.000000] Console: colour dummy device 80x25
    [ 0.000000] console [tty0] enabled
    [ 0.000000] tsc: Fast TSC calibration using PIT
    [ 0.000000] tsc: Detected 363.955 MHz processor
    [ 0.006677] Calibrating delay loop (skipped), value calculated using timer frequency.. 728.23 BogoMIPS (lpj=1213183)
    [ 0.006704] pid_max: default: 32768 minimum: 301
    [ 0.006934] Security Framework initialized
    [ 0.006969] AppArmor: AppArmor disabled by boot time parameter
    [ 0.007122] Mount-cache hash table entries: 512
    [ 0.008703] Initializing cgroup subsys cpuacct
    [ 0.008725] Initializing cgroup subsys memory
    [ 0.008789] Initializing cgroup subsys devices
    [ 0.008805] Initializing cgroup subsys freezer
    [ 0.008820] Initializing cgroup subsys net_cls
    [ 0.008833] Initializing cgroup subsys blkio
    [ 0.010131] mce: CPU supports 5 MCE banks
    [ 0.010255] Last level iTLB entries: 4KB 32, 2MB 0, 4MB 2
    Last level dTLB entries: 4KB 64, 2MB 0, 4MB 8
    tlb_flushall_shift is 0x6
    [ 0.010345] SMP alternatives: switching to UP code
    [ 0.030215] Freeing SMP alternatives: 16k freed
    [ 0.030302] ACPI: Core revision 20120711
    [ 0.064159] ACPI: setting ELCR to 0a00 (from 0800)
    [ 0.066739] ftrace: allocating 17427 entries in 35 pages
    [ 0.110222] smpboot: weird, boot CPU (#0) not listed by the BIOS
    [ 0.110255] smpboot: SMP motherboard not detected
    [ 0.110269] smpboot: Local APIC not detected. Using dummy APIC emulation.
    [ 0.110278] smpboot: SMP disabled
    [ 0.110291] Performance Events:
    [ 0.110308] no APIC, boot with the "lapic" boot parameter to force-enable it.
    [ 0.110319] no hardware sampling interrupt available.
    [ 0.110332] p6 PMU driver.
    [ 0.110348] ... version: 0
    [ 0.110358] ... bit width: 32
    [ 0.110367] ... generic registers: 2
    [ 0.110378] ... value mask: 00000000ffffffff
    [ 0.110389] ... max period: 000000007fffffff
    [ 0.110398] ... fixed-purpose events: 0
    [ 0.110408] ... event mask: 0000000000000003
    [ 0.137539] NMI watchdog: disabled (cpu0): not supported (no LAPIC?)
    [ 0.137923] Brought up 1 CPUs
    [ 0.137943] smpboot: Total of 1 processors activated (728.23 BogoMIPS)
    [ 0.139405] devtmpfs: initialized
    [ 0.141359] PM: Registering ACPI NVS region [mem 0x19fdf000-0x19fdffff] (4096 bytes)
    [ 0.152637] NET: Registered protocol family 16
    [ 0.154302] ACPI: bus type pci registered
    [ 0.159739] PCI: PCI BIOS revision 2.10 entry at 0xfd880, last bus=7
    [ 0.159754] PCI: Using configuration type 1 for base access
    [ 0.164680] bio: create slab <bio-0> at 0
    [ 0.165221] ACPI: Added _OSI(Module Device)
    [ 0.165239] ACPI: Added _OSI(Processor Device)
    [ 0.165254] ACPI: Added _OSI(3.0 _SCP Extensions)
    [ 0.165270] ACPI: Added _OSI(Processor Aggregator Device)
    [ 0.174743] ACPI: EC: Look up EC in DSDT
    [ 0.561367] ACPI: Interpreter enabled
    [ 0.561420] ACPI: (supports S0 S1 S2 S3 S4 S5)
    [ 0.561831] ACPI: Using PIC for interrupt routing
    [ 0.570305] ACPI: Power Resource [PVID] (on)
    [ 0.572694] ACPI: Power Resource [PSIO] (on)
    [ 0.574878] ACPI: Power Resource [PRSD] (off)
    [ 0.629330] ACPI: Power Resource [PFN0] (off)
    [ 0.630906] ACPI: Power Resource [PFN1] (off)
    [ 0.636194] ACPI: Power Resource [PDCK] (on)
    [ 0.637240] ACPI: EC: GPE = 0x9, I/O: command/status = 0x66, data = 0x62
    [ 0.641373] ACPI: ACPI Dock Station Driver: 1 docks/bays found
    [ 0.641842] vgaarb: loaded
    [ 0.642190] PCI: Probing PCI hardware
    [ 0.642209] PCI: root bus 00: using default resources
    [ 0.642221] PCI: Probing PCI hardware (bus 00)
    [ 0.642464] PCI host bridge to bus 0000:00
    [ 0.642497] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
    [ 0.642519] pci_bus 0000:00: root bus resource [mem 0x00000000-0xffffffff]
    [ 0.642539] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
    [ 0.642568] pci_bus 0000:00: busn_res: [bus 00-ff] is inserted under domain [bus 00-ff]
    [ 0.642638] pci 0000:00:00.0: [8086:7190] type 00 class 0x060000
    [ 0.642688] pci 0000:00:00.0: reg 10: [mem 0x40000000-0x43ffffff pref]
    [ 0.642858] pci 0000:00:01.0: [8086:7191] type 01 class 0x060400
    [ 0.642983] pci 0000:00:02.0: [104c:ac1d] type 02 class 0x060700
    [ 0.643038] pci 0000:00:02.0: reg 10: [mem 0x50102000-0x50102fff]
    [ 0.643117] pci 0000:00:02.0: supports D1 D2
    [ 0.643137] pci 0000:00:02.0: PME# supported from D0 D1 D2 D3hot
    [ 0.643214] pci 0000:00:02.1: [104c:ac1d] type 02 class 0x060700
    [ 0.643333] pci 0000:00:02.1: reg 10: [mem 0x50101000-0x50101fff]
    [ 0.643414] pci 0000:00:02.1: supports D1 D2
    [ 0.643434] pci 0000:00:02.1: PME# supported from D0 D1 D2 D3hot
    [ 0.643527] pci 0000:00:06.0: [1013:6001] type 00 class 0x040100
    [ 0.643575] pci 0000:00:06.0: reg 10: [mem 0x50100000-0x50100fff]
    [ 0.643613] pci 0000:00:06.0: reg 14: [mem 0x50000000-0x500fffff]
    [ 0.643780] pci 0000:00:07.0: [8086:7110] type 00 class 0x068000
    [ 0.643978] pci 0000:00:07.1: [8086:7111] type 00 class 0x010180
    [ 0.644084] pci 0000:00:07.1: reg 20: [io 0xfcf0-0xfcff]
    [ 0.644199] pci 0000:00:07.2: [8086:7112] type 00 class 0x0c0300
    [ 0.644308] pci 0000:00:07.2: reg 20: [io 0x8400-0x841f]
    [ 0.644422] pci 0000:00:07.3: [8086:7113] type 00 class 0x068000
    [ 0.644441] * Found PM-Timer Bug on the chipset. Due to workarounds for a bug,
    * this clock source is slow. Consider trying other clock sources
    [ 0.644601] pci 0000:00:07.3: quirk: [io 0xef00-0xef3f] claimed by PIIX4 ACPI
    [ 0.644626] pci 0000:00:07.3: quirk: [io 0xefa0-0xefaf] claimed by PIIX4 SMB
    [ 0.644652] pci 0000:00:07.3: PIIX4 devres B PIO at 02f8-02ff
    [ 0.644674] pci 0000:00:07.3: PIIX4 devres C PIO at 15e8-15ef
    [ 0.644696] pci 0000:00:07.3: PIIX4 devres E PIO at 0538-053f
    [ 0.644720] pci 0000:00:07.3: PIIX4 devres G PIO at 0130-013f
    [ 0.644744] pci 0000:00:07.3: PIIX4 devres I PIO at 002e-002f
    [ 0.644898] pci_bus 0000:01: busn_res: [bus 01] is inserted under [bus 00-ff]
    [ 0.644954] pci 0000:01:00.0: [10c8:0005] type 00 class 0x030000
    [ 0.645006] pci 0000:01:00.0: reg 10: [mem 0xe0000000-0xe0ffffff pref]
    [ 0.645042] pci 0000:01:00.0: reg 14: [mem 0x70000000-0x703fffff]
    [ 0.645077] pci 0000:01:00.0: reg 18: [mem 0x70400000-0x704fffff]
    [ 0.645196] pci 0000:01:00.0: supports D1 D2
    [ 0.645293] pci 0000:00:01.0: PCI bridge to [bus 01]
    [ 0.645319] pci 0000:00:01.0: bridge window [io 0xd000-0xdfff]
    [ 0.645344] pci 0000:00:01.0: bridge window [mem 0x70000000-0xdfffffff]
    [ 0.645369] pci 0000:00:01.0: bridge window [mem 0xe0000000-0xf7ffffff pref]
    [ 0.645481] pci_bus 0000:02: busn_res: [bus 02-ff] is inserted under [bus 00-ff]
    [ 0.645511] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 05
    [ 0.645597] pci_bus 0000:06: busn_res: [bus 06-ff] is inserted under [bus 00-ff]
    [ 0.645625] pci_bus 0000:06: busn_res: [bus 06-ff] end is updated to 09
    [ 0.645655] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 09
    [ 0.647922] vgaarb: device added: PCI:0000:01:00.0,decodes=io+mem,owns=io+mem,locks=none
    [ 0.648802] pci 0000:00:07.0: PIIX/ICH IRQ router [8086:7110]
    [ 0.648892] PCI: pci_cache_line_size set to 32 bytes
    [ 0.649047] e820: reserve RAM buffer [mem 0x0009fc00-0x0009ffff]
    [ 0.649064] e820: reserve RAM buffer [mem 0x19fd0000-0x1bffffff]
    [ 0.649911] NetLabel: Initializing
    [ 0.649928] NetLabel: domain hash size = 128
    [ 0.649990] NetLabel: protocols = UNLABELED CIPSOv4
    [ 0.650100] NetLabel: unlabeled traffic allowed by default
    [ 0.650468] Switching to clocksource pit
    [ 0.711237] pnp: PnP ACPI init
    [ 0.711384] ACPI: bus type pnp registered
    [ 0.713292] pnp 00:00: [mem 0x00000000-0x0009ffff]
    [ 0.713318] pnp 00:00: [mem 0x000c0000-0x000cbfff]
    [ 0.713339] pnp 00:00: [mem 0x000f0000-0x000fffff]
    [ 0.713359] pnp 00:00: [mem 0x00100000-0x19ffffff]
    [ 0.713379] pnp 00:00: [mem 0xfffe0000-0xffffffff]
    [ 0.713727] system 00:00: [mem 0x00000000-0x0009ffff] could not be reserved
    [ 0.713755] system 00:00: [mem 0x000c0000-0x000cbfff] could not be reserved
    [ 0.713779] system 00:00: [mem 0x000f0000-0x000fffff] could not be reserved
    [ 0.713802] system 00:00: [mem 0x00100000-0x19ffffff] could not be reserved
    [ 0.713827] system 00:00: [mem 0xfffe0000-0xffffffff] has been reserved
    [ 0.713864] system 00:00: Plug and Play ACPI device, IDs PNP0c01 (active)
    [ 0.713985] pnp 00:01: [bus 00-ff]
    [ 0.714037] pnp 00:01: [io 0x0cf8-0x0cff]
    [ 0.714060] pnp 00:01: [io 0x0000-0x0cf7 window]
    [ 0.714081] pnp 00:01: [io 0x0d00-0xffff window]
    [ 0.714103] pnp 00:01: [mem 0x000a0000-0x000bffff window]
    [ 0.714124] pnp 00:01: [mem 0x000cc000-0x000effff window]
    [ 0.714145] pnp 00:01: [mem 0x1a000000-0xffdfffff window]
    [ 0.714436] pnp 00:01: Plug and Play ACPI device, IDs PNP0a03 (active)
    [ 0.714937] pnp 00:02: [io 0x03f0-0x03f5]
    [ 0.714959] pnp 00:02: [io 0x03f7]
    [ 0.714986] pnp 00:02: [irq 6]
    [ 0.715008] pnp 00:02: [dma 2]
    [ 0.715317] pnp 00:02: Plug and Play ACPI device, IDs PNP0700 (active)
    [ 0.715952] pnp 00:03: Plug and Play ACPI device, IDs PNP0501 (disabled)
    [ 0.716936] pnp 00:04: [io 0x03bc-0x03bf]
    [ 0.716964] pnp 00:04: [irq 7]
    [ 0.717518] pnp 00:04: Plug and Play ACPI device, IDs PNP0400 (active)
    [ 0.718750] pnp 00:05: [io 0x03f8-0x03ff]
    [ 0.718775] pnp 00:05: [irq 4]
    [ 0.718795] pnp 00:05: [dma 3]
    [ 0.719828] pnp 00:05: Plug and Play ACPI device, IDs IBM0071 PNP0511 (active)
    [ 0.724699] pnp 00:06: [io 0x0538-0x053f]
    [ 0.725031] pnp 00:06: Plug and Play ACPI device, IDs CSC0110 (active)
    [ 0.733111] pnp 00:07: [io 0x0530-0x0537]
    [ 0.733135] pnp 00:07: [io 0x0388-0x038b]
    [ 0.733155] pnp 00:07: [io 0x0220-0x0233]
    [ 0.733179] pnp 00:07: [irq 5]
    [ 0.733198] pnp 00:07: [dma 1]
    [ 0.733216] pnp 00:07: [dma 0]
    [ 0.733642] pnp 00:07: Plug and Play ACPI device, IDs CSC0100 (active)
    [ 0.735954] pnp 00:08: [io 0x0200-0x0207]
    [ 0.736302] pnp 00:08: Plug and Play ACPI device, IDs CSC0101 PNPb02f (active)
    [ 0.741151] pnp 00:09: Plug and Play ACPI device, IDs CSC0103 (disabled)
    [ 0.749141] pnp 00:0a: [io 0x0130-0x013f]
    [ 0.749165] pnp 00:0a: [io 0x02f8-0x02ff]
    [ 0.749189] pnp 00:0a: [irq 3]
    [ 0.749209] pnp 00:0a: [irq 10]
    [ 0.749228] pnp 00:0a: [dma 7]
    [ 0.752374] pnp 00:0a: Plug and Play ACPI device, IDs IBM3765 (active)
    [ 0.752895] pnp 00:0b: [io 0x0000-0x000f]
    [ 0.752917] pnp 00:0b: [io 0x0080-0x008f]
    [ 0.752937] pnp 00:0b: [io 0x00c0-0x00df]
    [ 0.752956] pnp 00:0b: [dma 4]
    [ 0.753206] pnp 00:0b: Plug and Play ACPI device, IDs PNP0200 (active)
    [ 0.753287] pnp 00:0c: [io 0x0061]
    [ 0.753520] pnp 00:0c: Plug and Play ACPI device, IDs PNP0800 (active)
    [ 0.753616] pnp 00:0d: [io 0x0022]
    [ 0.753638] pnp 00:0d: [io 0x0092]
    [ 0.753657] pnp 00:0d: [io 0x00b2]
    [ 0.753676] pnp 00:0d: [io 0x002e-0x002f]
    [ 0.753695] pnp 00:0d: [io 0x15e0-0x15ef]
    [ 0.753714] pnp 00:0d: [io 0xef00-0xef3f]
    [ 0.753733] pnp 00:0d: [io 0xefa0-0xefaf]
    [ 0.754086] system 00:0d: [io 0x15e0-0x15ef] has been reserved
    [ 0.754112] system 00:0d: [io 0xef00-0xef3f] has been reserved
    [ 0.754135] system 00:0d: [io 0xefa0-0xefaf] has been reserved
    [ 0.754168] system 00:0d: Plug and Play ACPI device, IDs PNP0c02 (active)
    [ 0.754256] pnp 00:0e: [io 0x00f0-0x00ff]
    [ 0.754281] pnp 00:0e: [irq 13]
    [ 0.754519] pnp 00:0e: Plug and Play ACPI device, IDs PNP0c04 (active)
    [ 0.754608] pnp 00:0f: [io 0x0060]
    [ 0.754629] pnp 00:0f: [io 0x0064]
    [ 0.754650] pnp 00:0f: [irq 1]
    [ 0.754887] pnp 00:0f: Plug and Play ACPI device, IDs PNP0303 (active)
    [ 0.754973] pnp 00:10: [irq 12]
    [ 0.755233] pnp 00:10: Plug and Play ACPI device, IDs IBM3780 PNP0f13 (active)
    [ 0.755324] pnp 00:11: [io 0x0070-0x0073]
    [ 0.755347] pnp 00:11: [irq 8]
    [ 0.755587] pnp 00:11: Plug and Play ACPI device, IDs PNP0b00 (active)
    [ 0.761409] pnp: PnP ACPI: found 18 devices
    [ 0.761429] ACPI: ACPI bus type pnp unregistered
    [ 0.812245] Switching to clocksource acpi_pm
    [ 0.812534] pci 0000:00:02.0: res[15]=[mem 0x04000000-0x03ffffff pref] get_res_add_size add_size 4000000
    [ 0.812561] pci 0000:00:02.0: res[16]=[mem 0x04000000-0x03ffffff] get_res_add_size add_size 4000000
    [ 0.812586] pci 0000:00:02.1: res[15]=[mem 0x04000000-0x03ffffff pref] get_res_add_size add_size 4000000
    [ 0.812610] pci 0000:00:02.1: res[16]=[mem 0x04000000-0x03ffffff] get_res_add_size add_size 4000000
    [ 0.812633] pci 0000:00:02.0: res[13]=[io 0x0100-0x00ff] get_res_add_size add_size 100
    [ 0.812655] pci 0000:00:02.0: res[14]=[io 0x0100-0x00ff] get_res_add_size add_size 100
    [ 0.812760] pci 0000:00:02.1: res[13]=[io 0x0100-0x00ff] get_res_add_size add_size 100
    [ 0.812785] pci 0000:00:02.1: res[14]=[io 0x0100-0x00ff] get_res_add_size add_size 100
    [ 0.812829] pci 0000:00:02.0: BAR 15: assigned [mem 0x1c000000-0x1fffffff pref]
    [ 0.812855] pci 0000:00:02.0: BAR 16: assigned [mem 0x20000000-0x23ffffff]
    [ 0.812882] pci 0000:00:02.1: BAR 15: assigned [mem 0x24000000-0x27ffffff pref]
    [ 0.812907] pci 0000:00:02.1: BAR 16: assigned [mem 0x28000000-0x2bffffff]
    [ 0.812937] pci 0000:00:02.0: BAR 13: assigned [io 0x1000-0x10ff]
    [ 0.812963] pci 0000:00:02.0: BAR 14: assigned [io 0x1400-0x14ff]
    [ 0.812990] pci 0000:00:02.1: BAR 13: assigned [io 0x1800-0x18ff]
    [ 0.813016] pci 0000:00:02.1: BAR 14: assigned [io 0x1c00-0x1cff]
    [ 0.813047] pci 0000:00:01.0: PCI bridge to [bus 01]
    [ 0.813073] pci 0000:00:01.0: bridge window [io 0xd000-0xdfff]
    [ 0.813101] pci 0000:00:01.0: bridge window [mem 0x70000000-0xdfffffff]
    [ 0.813126] pci 0000:00:01.0: bridge window [mem 0xe0000000-0xf7ffffff pref]
    [ 0.813154] pci 0000:00:02.0: CardBus bridge to [bus 02-05]
    [ 0.813174] pci 0000:00:02.0: bridge window [io 0x1000-0x10ff]
    [ 0.813199] pci 0000:00:02.0: bridge window [io 0x1400-0x14ff]
    [ 0.813224] pci 0000:00:02.0: bridge window [mem 0x1c000000-0x1fffffff pref]
    [ 0.813249] pci 0000:00:02.0: bridge window [mem 0x20000000-0x23ffffff]
    [ 0.813273] pci 0000:00:02.1: CardBus bridge to [bus 06-09]
    [ 0.813293] pci 0000:00:02.1: bridge window [io 0x1800-0x18ff]
    [ 0.813316] pci 0000:00:02.1: bridge window [io 0x1c00-0x1cff]
    [ 0.813341] pci 0000:00:02.1: bridge window [mem 0x24000000-0x27ffffff pref]
    [ 0.813416] pci 0000:00:02.1: bridge window [mem 0x28000000-0x2bffffff]
    [ 0.813478] PCI: setting IRQ 11 as level-triggered
    [ 0.813500] pci 0000:00:02.0: found PCI INT A -> IRQ 11
    [ 0.813572] pci 0000:00:02.0: sharing IRQ 11 with 0000:01:00.0
    [ 0.813615] pci 0000:00:02.1: found PCI INT B -> IRQ 11
    [ 0.813694] pci_bus 0000:00: resource 4 [io 0x0000-0xffff]
    [ 0.813717] pci_bus 0000:00: resource 5 [mem 0x00000000-0xffffffff]
    [ 0.813739] pci_bus 0000:01: resource 0 [io 0xd000-0xdfff]
    [ 0.813760] pci_bus 0000:01: resource 1 [mem 0x70000000-0xdfffffff]
    [ 0.813782] pci_bus 0000:01: resource 2 [mem 0xe0000000-0xf7ffffff pref]
    [ 0.813804] pci_bus 0000:02: resource 0 [io 0x1000-0x10ff]
    [ 0.813825] pci_bus 0000:02: resource 1 [io 0x1400-0x14ff]
    [ 0.813846] pci_bus 0000:02: resource 2 [mem 0x1c000000-0x1fffffff pref]
    [ 0.813867] pci_bus 0000:02: resource 3 [mem 0x20000000-0x23ffffff]
    [ 0.813889] pci_bus 0000:06: resource 0 [io 0x1800-0x18ff]
    [ 0.813909] pci_bus 0000:06: resource 1 [io 0x1c00-0x1cff]
    [ 0.813931] pci_bus 0000:06: resource 2 [mem 0x24000000-0x27ffffff pref]
    [ 0.813952] pci_bus 0000:06: resource 3 [mem 0x28000000-0x2bffffff]
    [ 0.814282] NET: Registered protocol family 2
    [ 0.815362] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
    [ 0.816017] TCP bind hash table entries: 16384 (order: 5, 131072 bytes)
    [ 0.816894] TCP: Hash tables configured (established 16384 bind 16384)
    [ 0.817202] TCP: reno registered
    [ 0.817236] UDP hash table entries: 256 (order: 1, 8192 bytes)
    [ 0.817312] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
    [ 0.817996] NET: Registered protocol family 1
    [ 0.818107] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
    [ 0.818266] pci 0000:00:07.2: found PCI INT D -> IRQ 11
    [ 0.818392] pci 0000:01:00.0: Boot video device
    [ 0.818413] PCI: CLS 32 bytes, default 32
    [ 0.818831] Unpacking initramfs...
    [ 1.351292] Freeing initrd memory: 2940k freed
    [ 1.376909] IBM machine detected. Enabling interrupts during APM calls.
    [ 1.376944] apm: BIOS not found.
    [ 1.378768] audit: initializing netlink socket (disabled)
    [ 1.378869] type=2000 audit(1357623100.375:1): initialized
    [ 1.456306] HugeTLB registered 4 MB page size, pre-allocated 0 pages
    [ 1.469632] VFS: Disk quotas dquot_6.5.2
    [ 1.470155] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [ 1.471349] msgmni has been set to 808
    [ 1.472909] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
    [ 1.473145] io scheduler noop registered
    [ 1.473160] io scheduler deadline registered
    [ 1.473241] io scheduler cfq registered (default)
    [ 1.474456] vesafb: mode is 1024x768x24, linelength=3072, pages=0
    [ 1.474471] vesafb: scrolling: redraw
    [ 1.474491] vesafb: Truecolor: size=0:8:8:8, shift=0:16:8:0
    [ 1.475741] vesafb: framebuffer at 0xe0000000, mapped to 0xda800000, using 2304k, total 2304k
    [ 1.562964] Console: switching to colour frame buffer device 128x48
    [ 1.649186] fb0: VESA VGA frame buffer device
    [ 1.649300] intel_idle: does not run on family 6 model 6
    [ 1.649488] GHES: HEST is not enabled!
    [ 1.649596] isapnp: Scanning for PnP cards...
    [ 1.962801] isapnp: No Plug & Play device found
    [ 1.963142] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
    [ 1.963546] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a NS16550A
    [ 1.965105] serial 00:03: [io 0x03e8-0x03ef]
    [ 1.965270] serial 00:03: [io 0x02e8-0x02ef]
    [ 1.965370] serial 00:03: unable to assign resources
    [ 1.966235] serial: probe of 00:03 failed with error -16
    [ 1.968618] i8042: PNP: PS/2 Controller [PNP0303:KBD0,PNP0f13:MOU0] at 0x60,0x64 irq 1,12
    [ 1.981778] serio: i8042 KBD port at 0x60,0x64 irq 1
    [ 1.982038] serio: i8042 AUX port at 0x60,0x64 irq 12
    [ 1.982810] mousedev: PS/2 mouse device common for all mice
    [ 1.983547] rtc_cmos 00:11: RTC can wake from S4
    [ 1.984178] rtc_cmos 00:11: rtc core: registered rtc_cmos as rtc0
    [ 1.984245] rtc0: alarms up to one month, y3k, 242 bytes nvram
    [ 1.984391] cpuidle: using governor ladder
    [ 1.984407] cpuidle: using governor menu
    [ 1.985466] drop_monitor: Initializing network drop monitor service
    [ 1.986281] TCP: cubic registered
    [ 1.987523] NET: Registered protocol family 10
    [ 1.988965] NET: Registered protocol family 17
    [ 1.989071] Key type dns_resolver registered
    [ 1.989929] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
    [ 1.991439] Using IPI No-Shortcut mode
    [ 1.992165] PM: Hibernation image not present or could not be loaded.
    [ 1.992247] registered taskstats version 1
    [ 1.993234] rtc_cmos 00:11: setting system clock to 2013-01-08 05:31:41 UTC (1357623101)
    [ 1.994003] Freeing unused kernel memory: 536k freed
    [ 1.998614] Write protecting the kernel text: 3976k
    [ 1.998781] Write protecting the kernel read-only data: 1180k
    [ 2.076151] systemd-udevd[35]: starting version 196
    [ 2.376812] tsc: Refined TSC clocksource calibration: 363.959 MHz
    [ 2.376856] Switching to clocksource tsc
    [ 2.660180] Floppy drive(s): fd0 is 1.44M
    [ 2.675627] FDC 0 is a National Semiconductor PC87306
    [ 2.846218] SCSI subsystem initialized
    [ 2.846867] ACPI: bus type usb registered
    [ 2.847139] usbcore: registered new interface driver usbfs
    [ 2.847247] usbcore: registered new interface driver hub
    [ 2.850735] usbcore: registered new device driver usb
    [ 2.865842] uhci_hcd: USB Universal Host Controller Interface driver
    [ 2.866073] uhci_hcd 0000:00:07.2: found PCI INT D -> IRQ 11
    [ 2.866196] uhci_hcd 0000:00:07.2: UHCI Host Controller
    [ 2.866262] uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1
    [ 2.866376] uhci_hcd 0000:00:07.2: irq 11, io base 0x00008400
    [ 2.870937] hub 1-0:1.0: USB hub found
    [ 2.870987] hub 1-0:1.0: 2 ports detected
    [ 2.916340] ACPI: bus type scsi registered
    [ 2.925593] libata version 3.00 loaded.
    [ 2.928785] ata_piix 0000:00:07.1: version 2.13
    [ 2.951632] scsi0 : ata_piix
    [ 2.957437] scsi1 : ata_piix
    [ 2.957913] ata1: PATA max UDMA/33 cmd 0x1f0 ctl 0x3f6 bmdma 0xfcf0 irq 14
    [ 2.957935] ata2: PATA max UDMA/33 cmd 0x170 ctl 0x376 bmdma 0xfcf8 irq 15
    [ 3.114144] ata2.00: ATAPI: QSI CD-RW/DVD-ROM SBW-242, UD22, max UDMA/33
    [ 3.117407] ata1.00: ATA-6: TOSHIBA MK4032GAX, AD101A, max UDMA/100
    [ 3.117435] ata1.00: 78140160 sectors, multi 16: LBA48
    [ 3.120653] ata2.00: configured for UDMA/33
    [ 3.124030] ata1.00: configured for UDMA/33
    [ 3.124974] scsi 0:0:0:0: Direct-Access ATA TOSHIBA MK4032GA AD10 PQ: 0 ANSI: 5
    [ 3.127443] scsi 1:0:0:0: CD-ROM QSI CDRW/DVD SBW-242 UD22 PQ: 0 ANSI: 5
    [ 3.176936] usb 1-1: new full-speed USB device number 2 using uhci_hcd
    [ 3.243716] sd 0:0:0:0: [sda] 78140160 512-byte logical blocks: (40.0 GB/37.2 GiB)
    [ 3.244277] sd 0:0:0:0: [sda] Write Protect is off
    [ 3.244302] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
    [ 3.244530] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    [ 3.252164] sr0: scsi3-mmc drive: 4x/24x writer cd/rw xa/form2 cdda tray
    [ 3.252195] cdrom: Uniform CD-ROM driver Revision: 3.20
    [ 3.255158] sr 1:0:0:0: Attached scsi CD-ROM sr0
    [ 3.316885] sda: sda1 sda2 < sda5 sda6 sda7 >
    [ 3.322292] sd 0:0:0:0: [sda] Attached SCSI disk
    [ 3.340964] hub 1-1:1.0: USB hub found
    [ 3.342614] hub 1-1:1.0: 4 ports detected
    [ 3.621587] usb 1-1.1: new full-speed USB device number 3 using uhci_hcd
    [ 3.948499] usb 1-1.2: new low-speed USB device number 4 using uhci_hcd
    [ 4.158834] usbcore: registered new interface driver usbhid
    [ 4.158859] usbhid: USB HID core driver
    [ 4.184432] input: MLK Silvercrest OM1008 as /devices/pci0000:00/0000:00:07.2/usb1/1-1/1-1.2/1-1.2:1.0/input/input1
    [ 4.192909] hid-generic 0003:04FC:0538.0001: input,hiddev0,hidraw0: USB HID v1.10 Mouse [MLK Silvercrest OM1008] on usb-0000:00:07.2-1.2/input0
    [ 4.408087] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
    [ 5.387222] systemd[1]: systemd 196 running in system mode. (+PAM -LIBWRAP -AUDIT -SELINUX -IMA -SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ; arch)
    [ 5.436187] systemd[1]: Set hostname to <wishthinkpad.loc>.
    [ 6.018181] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
    [ 6.018714] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [ 6.018876] systemd[1]: Starting Syslog Socket.
    [ 6.019287] systemd[1]: Listening on Syslog Socket.
    [ 6.019417] systemd[1]: Starting Remote File Systems.
    [ 6.019547] systemd[1]: Reached target Remote File Systems.
    [ 6.019670] systemd[1]: Expecting device sys-subsystem-net-devices-wlan0.device...
    [ 6.019805] systemd[1]: Starting Delayed Shutdown Socket.
    [ 6.020214] systemd[1]: Listening on Delayed Shutdown Socket.
    [ 6.020346] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
    [ 6.020607] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
    [ 6.020725] systemd[1]: Starting Encrypted Volumes.
    [ 6.020855] systemd[1]: Reached target Encrypted Volumes.
    [ 6.021185] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
    [ 6.022274] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
    [ 6.022458] systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.
    [ 6.022858] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [ 6.023723] systemd[1]: Starting udev Kernel Socket.
    [ 6.024020] systemd[1]: Listening on udev Kernel Socket.
    [ 6.024588] systemd[1]: Starting udev Control Socket.
    [ 6.024899] systemd[1]: Listening on udev Control Socket.
    [ 6.025066] systemd[1]: Expecting device dev-disk-by\x2duuid-0a64bde1\x2d82c3\x2d4cfb\x2dab68\x2d7178564d8ed5.device...
    [ 6.025218] systemd[1]: Expecting device dev-disk-by\x2duuid-567947ca\x2dcba3\x2d42e4\x2d9677\x2de9ddeecd2c26.device...
    [ 6.025358] systemd[1]: Expecting device dev-disk-by\x2duuid-e4eb21d7\x2d8ea8\x2d4059\x2db44b\x2d778690e44675.device...
    [ 6.025517] systemd[1]: Starting Journal Socket.
    [ 6.025993] systemd[1]: Listening on Journal Socket.
    [ 6.026212] systemd[1]: Started File System Check on Root Device.
    [ 6.026347] systemd[1]: Starting Remount Root and Kernel File Systems...
    [ 6.034598] systemd[1]: Starting Setup Virtual Console...
    [ 6.044014] systemd[1]: Mounting POSIX Message Queue File System...
    [ 6.055201] systemd[1]: Mounting Debug File System...
    [ 6.098496] systemd[1]: Started Set Up Additional Binary Formats.
    [ 6.098949] systemd[1]: Mounting Huge Pages File System...
    [ 6.106869] systemd[1]: Starting udev Kernel Device Manager...
    [ 6.142067] systemd[1]: Starting Apply Kernel Variables...
    [ 6.167655] systemd[1]: Started Load Kernel Modules.
    [ 6.167933] systemd[1]: Mounted FUSE Control File System.
    [ 6.168090] systemd[1]: Mounted Configuration File System.
    [ 6.168674] systemd[1]: Starting udev Coldplug all Devices...
    [ 6.178256] systemd[1]: Starting Journal Service...
    [ 6.254916] systemd[1]: Started Journal Service.
    [ 6.255257] systemd[1]: Starting Syslog.
    [ 6.255396] systemd[1]: Reached target Syslog.
    [ 6.459181] systemd-udevd[82]: starting version 196
    [ 6.601745] EXT4-fs (sda1): re-mounted. Opts: (null)
    [ 8.687281] input: Lid Switch as /devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input2
    [ 8.693686] ACPI: Lid Switch [LID0]
    [ 8.694288] input: Sleep Button as /devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input3
    [ 8.703735] ACPI: Sleep Button [SLPB]
    [ 8.708032] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input4
    [ 8.710936] ACPI: Power Button [PWRF]
    [ 8.742946] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
    [ 8.759509] Linux agpgart interface v0.103
    [ 8.761831] tsc: Marking TSC unstable due to TSC halts in idle
    [ 8.766111] Switching to clocksource acpi_pm
    [ 8.777943] ACPI: acpi_idle registered with cpuidle
    [ 8.790560] piix4_smbus 0000:00:07.3: IBM system detected; this module may corrupt your serial eeprom! Refusing to load module!
    [ 8.792526] piix4_smbus: probe of 0000:00:07.3 failed with error -1
    [ 8.810432] yenta_cardbus 0000:00:02.0: CardBus bridge found [1014:00eb]
    [ 8.810495] yenta_cardbus 0000:00:02.0: Enabling burst memory read transactions
    [ 8.810520] yenta_cardbus 0000:00:02.0: Using CSCINT to route CSC interrupts to PCI
    [ 8.810537] yenta_cardbus 0000:00:02.0: Routing CardBus interrupts to PCI
    [ 8.810562] yenta_cardbus 0000:00:02.0: TI: mfunc 0xfba97543, devctl 0x62
    [ 8.938642] thermal LNXTHERM:00: registered as thermal_zone0
    [ 8.938670] ACPI: Thermal Zone [THM0] (42 C)
    [ 9.004501] ACPI: Fan [FN00] (off)
    [ 9.005012] ACPI: Fan [FN01] (off)
    [ 9.009048] thermal LNXTHERM:01: registered as thermal_zone1
    [ 9.009073] ACPI: Thermal Zone [THM2] (20 C)
    [ 9.009590] ACPI: Fan [FN20] (off)
    [ 9.012203] ACPI: Fan [FN21] (off)
    [ 9.013314] ACPI: Fan [FN60] (off)
    [ 9.014648] ACPI: Fan [FN61] (off)
    [ 9.040764] yenta_cardbus 0000:00:02.0: ISA IRQ mask 0x0498, PCI irq 11
    [ 9.040796] yenta_cardbus 0000:00:02.0: Socket status: 30000006
    [ 9.062521] yenta_cardbus 0000:00:02.1: CardBus bridge found [1014:00eb]
    [ 9.062591] yenta_cardbus 0000:00:02.1: Using CSCINT to route CSC interrupts to PCI
    [ 9.062610] yenta_cardbus 0000:00:02.1: Routing CardBus interrupts to PCI
    [ 9.062634] yenta_cardbus 0000:00:02.1: TI: mfunc 0xfba97543, devctl 0x62
    [ 9.079663] ACPI: Fan [FN70] (off)
    [ 9.093343] thermal LNXTHERM:02: registered as thermal_zone2
    [ 9.095023] ACPI: Thermal Zone [THM6] (27 C)
    [ 9.096320] ACPI: Fan [FN71] (off)
    [ 9.102380] thermal LNXTHERM:03: registered as thermal_zone3
    [ 9.102406] ACPI: Thermal Zone [THM7] (27 C)
    [ 9.290735] yenta_cardbus 0000:00:02.1: ISA IRQ mask 0x0498, PCI irq 11
    [ 9.290767] yenta_cardbus 0000:00:02.1: Socket status: 30000006
    [ 9.298222] psmouse serio1: hgpk: ID: 10 00 64
    [ 9.319131] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
    [ 9.321961] agpgart-intel 0000:00:00.0: Intel 440BX Chipset
    [ 9.383513] gameport gameport0: NS558 PnP Gameport is pnp00:08/gameport0, io 0x200, speed 685kHz
    [ 9.449433] agpgart-intel 0000:00:00.0: AGP aperture is 64M @ 0x40000000
    [ 9.572098] parport_pc 00:04: reported by Plug and Play ACPI
    [ 9.572186] parport0: PC-style at 0x3bc, irq 7 [PCSPP,TRISTATE]
    [ 9.621417] NET: Registered protocol family 23
    [ 9.702875] nsc-ircc, chip->init
    [ 9.702902] nsc-ircc, Found chip at base=0x02e
    [ 9.702942] nsc-ircc, driver loaded (Dag Brattli)
    [ 9.703038] nsc_ircc_open(), can't get iobase of 0x3f8
    [ 9.703089] nsc-ircc, Found chip at base=0x02e
    [ 9.703128] nsc-ircc, driver loaded (Dag Brattli)
    [ 9.703173] nsc_ircc_open(), can't get iobase of 0x3f8
    [ 9.710755] nsc-ircc 00:05: disabled
    [ 9.829100] microcode: CPU0 sig=0x66a, pf=0x8, revision=0xa
    [ 9.840431] psmouse serio1: trackpoint: IBM TrackPoint firmware: 0x0b, buttons: 3/3
    [ 9.871890] input: TPPS/2 IBM TrackPoint as /devices/platform/i8042/serio1/input/input5
    [ 10.413153] ppdev: user-space parallel port driver
    [ 10.512439] microcode: Microcode Update Driver: v2.00 <[email protected]>, Peter Oruba
    [ 10.681703] pcmcia_socket pcmcia_socket0: cs: IO port probe 0x100-0x3af:
    [ 10.682361] excluding 0x130-0x137 0x170-0x177 0x1f0-0x1f7 0x200-0x207 0x220-0x22f 0x370-0x377 0x388-0x38f
    [ 10.683119] pcmcia_socket pcmcia_socket0: cs: IO port probe 0x3e0-0x4ff:
    [ 10.687638] pcmcia_socket pcmcia_socket1: cs: IO port probe 0x100-0x3af:
    [ 10.688295] excluding 0x130-0x137 0x170-0x177 0x1f0-0x1f7 0x200-0x207 0x220-0x22f 0x370-0x377 0x388-0x38f
    [ 10.689052] pcmcia_socket pcmcia_socket1: cs: IO port probe 0x3e0-0x4ff:
    [ 10.689327] excluding 0x3f0-0x3ff 0x4c0-0x4c7 0x4d0-0x4d7
    [ 10.689737] pcmcia_socket pcmcia_socket1: cs: IO port probe 0x820-0x8ff:
    [ 10.693574] excluding 0x3f0-0x3ff 0x4d0-0x4d7
    [ 10.694068] pcmcia_socket pcmcia_socket0: cs: IO port probe 0x820-0x8ff:
    [ 10.694336] excluding 0x850-0x857
    [ 10.694666] pcmcia_socket pcmcia_socket0: cs: IO port probe 0xc00-0xcf7:
    [ 10.695138] clean.
    [ 10.695329] pcmcia_socket pcmcia_socket0: cs: memory probe 0x0c0000-0x0fffff:
    [ 10.695361] excluding 0xc0000-0xcbfff 0xf0000-0xfffff
    [ 10.695577] pcmcia_socket pcmcia_socket0: cs: memory probe 0xa0000000-0xa0ffffff:
    [ 10.695647] excluding 0xa0000000-0xa0ffffff
    [ 10.695820] pcmcia_socket pcmcia_socket0: cs: memory probe 0x60000000-0x60ffffff:
    [ 10.695902] clean.
    [ 10.696062] pcmcia_socket pcmcia_socket0: cs: IO port probe 0xa00-0xaff:
    [ 10.696552] clean.
    [ 10.699553] clean.
    [ 10.703678] pcmcia_socket pcmcia_socket1: cs: IO port probe 0xc00-0xcf7:
    [ 10.704168] clean.
    [ 10.704390] pcmcia_socket pcmcia_socket1: cs: memory probe 0x0c0000-0x0fffff:
    [ 10.704423] excluding 0xc0000-0xcbfff 0xf0000-0xfffff
    [ 10.704641] pcmcia_socket pcmcia_socket1: cs: memory probe 0xa0000000-0xa0ffffff:
    [ 10.704711] excluding 0xa0000000-0xa0ffffff
    [ 10.704884] pcmcia_socket pcmcia_socket1: cs: memory probe 0x60000000-0x60ffffff:
    [ 10.704966] clean.
    [ 10.705127] pcmcia_socket pcmcia_socket1: cs: IO port probe 0xa00-0xaff:
    [ 10.705615] clean.
    [ 11.538531] Adding

    Hi Dude.
    I will try what You have suggested.
    Which channel do You "recommend"?
    My router is set to G-only as the card is G-only, I have been using channel 1 but I will change it to 11 and see what happens.
    I was using WPA2-Personal with AES but I will change it to WPA2-Mixed (AES + TKIP) and see if that changes anything.
    I was hoping that the upgrade of the linux-firmware (linux-firmware-20130610-1) that I have found in the repo today fixes the issue.
    Installed it and typed in:
    [root@wishthinkpad andrzejl]# iwconfig wlan0 rate 54M fixed
    [root@wishthinkpad andrzejl]# ping go
    and I have lost connection before I could even type in "ping google.com"...
    Edit: Changing router's settings got me nowhere so far Dude:
    [andrzejl@wishmacer ~]$ ssh_ibm
    Last login: Fri Jun 14 16:08:17 2013 from acer.loc
    [andrzejl@wishthinkpad ~]$ su
    Password:
    [root@wishthinkpad andrzejl]# ping google.com
    PING google.com (74.125.24.102) 56(84) bytes of data.
    64 bytes from de-in-f102.1e100.net (74.125.24.102): icmp_seq=1 ttl=47 time=81.5 ms
    64 bytes from de-in-f102.1e100.net (74.125.24.102): icmp_seq=2 ttl=47 time=79.9 ms
    64 bytes from de-in-f102.1e100.net (74.125.24.102): icmp_seq=3 ttl=47 time=85.4 ms
    64 bytes from de-in-f102.1e100.net (74.125.24.102): icmp_seq=4 ttl=47 time=81.6 ms
    64 bytes from de-in-f102.1e100.net (74.125.24.102): icmp_seq=5 ttl=47 time=81.7 ms
    64 bytes from de-in-f102.1e100.net (74.125.24.102): icmp_seq=6 ttl=47 time=94.1 ms
    64 bytes from de-in-f102.1e100.net (74.125.24.102): icmp_seq=7 ttl=47 time=77.0 ms
    ^C
    --- google.com ping statistics ---
    7 packets transmitted, 7 received, 0% packet loss, time 6002ms
    rtt min/avg/max/mdev = 77.097/83.085/94.145/5.084 ms
    [root@wishthinkpad andrzejl]# iwconfig
    wlan0     IEEE 802.11bg  ESSID:"Arch_Linux_User" 
              Mode:Managed  Frequency:2.462 GHz  Access Point: 00:18:39:A0:DB:3E   
              Bit Rate=1 Mb/s   Tx-Power=20 dBm   
              Retry  long limit:7   RTS thr:off   Fragment thr:off
              Encryption key:off
              Power Management:off
              Link Quality=60/70  Signal level=-50 dBm 
              Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
              Tx excessive retries:0  Invalid misc:132   Missed beacon:0
    lo        no wireless extensions.
    [root@wishthinkpad andrzejl]# iwconfig wlan0 rate 54M fixed
    [root@wishthinkpad andrzejl]# ping google.com
    PING google.com (74.125.24.101) 56(84) bytes of data.
    64 bytes from de-in-f101.1e100.net (74.125.24.101): icmp_seq=4 ttl=47 time=34.1 ms
    64 bytes from de-in-f101.1e100.net (74.125.24.101): icmp_seq=8 ttl=47 time=70.3 ms
    64 bytes from de-in-f101.1e100.net (74.125.24.101): icmp_seq=9 ttl=47 time=163 ms
    ^C64 bytes from 74.125.24.101: icmp_seq=13 ttl=47 time=39.7 ms
    --- google.com ping statistics ---
    13 packets transmitted, 4 received, 69% packet loss, time 30364ms
    rtt min/avg/max/mdev = 34.139/76.870/163.269/51.752 ms
    [root@wishthinkpad andrzejl]#
    Here is the log (journalctl -b | grep wlan > dump_wlan) for the entire boot:
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Expecting device sys-subsystem-net-devices-wlan0.device...
    Jun 14 16:13:14 wishthinkpad.loc ntpd[201]: Listen normally on 3 wlan0 192.168.0.102 UDP 123
    Jun 14 16:13:19 wishthinkpad.loc kernel: IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
    Jun 14 16:13:19 wishthinkpad.loc kernel: wlan0: authenticate with 00:18:39:a0:db:3e
    Jun 14 16:13:19 wishthinkpad.loc kernel: wlan0: send auth to 00:18:39:a0:db:3e (try 1/3)
    Jun 14 16:13:19 wishthinkpad.loc kernel: wlan0: authenticated
    Jun 14 16:13:19 wishthinkpad.loc kernel: rt73usb 1-1.1:1.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
    Jun 14 16:13:19 wishthinkpad.loc kernel: rt73usb 1-1.1:1.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
    Jun 14 16:13:19 wishthinkpad.loc kernel: wlan0: associate with 00:18:39:a0:db:3e (try 1/3)
    Jun 14 16:13:19 wishthinkpad.loc kernel: wlan0: RX AssocResp from 00:18:39:a0:db:3e (capab=0x411 status=0 aid=1)
    Jun 14 16:13:19 wishthinkpad.loc kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
    Jun 14 16:13:19 wishthinkpad.loc kernel: wlan0: associated
    Here is the log (journalctl -b > dump) for the entire boot:
    -- Logs begin at Sat 2013-01-05 05:42:53 GMT, end at Fri 2013-06-14 16:23:56 IST. --
    Jun 14 16:13:03 wishthinkpad.loc systemd-journal[90]: Allowing runtime journal files to grow to 20.2M.
    Jun 14 16:13:03 wishthinkpad.loc kernel: Initializing cgroup subsys cpuset
    Jun 14 16:13:03 wishthinkpad.loc kernel: Initializing cgroup subsys cpu
    Jun 14 16:13:03 wishthinkpad.loc kernel: Linux version 3.9.5-1-ARCH (tobias@testing-i686) (gcc version 4.8.1 (GCC) ) #1 SMP PREEMPT Sat Jun 8 10:10:57 CEST 2013
    Jun 14 16:13:03 wishthinkpad.loc kernel: e820: BIOS-provided physical RAM map:
    Jun 14 16:13:03 wishthinkpad.loc kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
    Jun 14 16:13:03 wishthinkpad.loc kernel: BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
    Jun 14 16:13:03 wishthinkpad.loc kernel: BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
    Jun 14 16:13:03 wishthinkpad.loc kernel: BIOS-e820: [mem 0x0000000000100000-0x0000000019fcffff] usable
    Jun 14 16:13:03 wishthinkpad.loc kernel: BIOS-e820: [mem 0x0000000019fd0000-0x0000000019fdefff] ACPI data
    Jun 14 16:13:03 wishthinkpad.loc kernel: BIOS-e820: [mem 0x0000000019fdf000-0x0000000019fdffff] ACPI NVS
    Jun 14 16:13:03 wishthinkpad.loc kernel: BIOS-e820: [mem 0x0000000019fe0000-0x0000000019ffffff] reserved
    Jun 14 16:13:03 wishthinkpad.loc kernel: BIOS-e820: [mem 0x00000000fffe0000-0x00000000ffffffff] reserved
    Jun 14 16:13:03 wishthinkpad.loc kernel: Malformed early option 'apic'
    Jun 14 16:13:03 wishthinkpad.loc kernel: Malformed early option 'apic'
    Jun 14 16:13:03 wishthinkpad.loc kernel: Notice: NX (Execute Disable) protection missing in CPU!
    Jun 14 16:13:03 wishthinkpad.loc kernel: SMBIOS 2.2 present.
    Jun 14 16:13:03 wishthinkpad.loc kernel: DMI: IBM 26458A0/26458A0, BIOS INET24WW 05/24/1999
    Jun 14 16:13:03 wishthinkpad.loc kernel: e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
    Jun 14 16:13:03 wishthinkpad.loc kernel: e820: remove [mem 0x000a0000-0x000fffff] usable
    Jun 14 16:13:03 wishthinkpad.loc kernel: e820: last_pfn = 0x19fd0 max_arch_pfn = 0x100000
    Jun 14 16:13:03 wishthinkpad.loc kernel: MTRR default type: uncachable
    Jun 14 16:13:03 wishthinkpad.loc kernel: MTRR fixed ranges enabled:
    Jun 14 16:13:03 wishthinkpad.loc kernel: 00000-9FFFF write-back
    Jun 14 16:13:03 wishthinkpad.loc kernel: A0000-BFFFF uncachable
    Jun 14 16:13:03 wishthinkpad.loc kernel: C0000-CBFFF write-protect
    Jun 14 16:13:03 wishthinkpad.loc kernel: CC000-EFFFF uncachable
    Jun 14 16:13:03 wishthinkpad.loc kernel: F0000-FFFFF write-protect
    Jun 14 16:13:03 wishthinkpad.loc kernel: MTRR variable ranges enabled:
    Jun 14 16:13:03 wishthinkpad.loc kernel: 0 base 000000000 mask FF0000000 write-back
    Jun 14 16:13:03 wishthinkpad.loc kernel: 1 base 010000000 mask FF8000000 write-back
    Jun 14 16:13:03 wishthinkpad.loc kernel: 2 base 018000000 mask FFE000000 write-back
    Jun 14 16:13:03 wishthinkpad.loc kernel: 3 disabled
    Jun 14 16:13:03 wishthinkpad.loc kernel: 4 disabled
    Jun 14 16:13:03 wishthinkpad.loc kernel: 5 disabled
    Jun 14 16:13:03 wishthinkpad.loc kernel: 6 disabled
    Jun 14 16:13:03 wishthinkpad.loc kernel: 7 disabled
    Jun 14 16:13:03 wishthinkpad.loc kernel: PAT not supported by CPU.
    Jun 14 16:13:03 wishthinkpad.loc kernel: Scanning 1 areas for low memory corruption
    Jun 14 16:13:03 wishthinkpad.loc kernel: initial memory mapped: [mem 0x00000000-0x01bfffff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: Base memory trampoline at [c009b000] 9b000 size 16384
    Jun 14 16:13:03 wishthinkpad.loc kernel: init_memory_mapping: [mem 0x00000000-0x000fffff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: [mem 0x00000000-0x000fffff] page 4k
    Jun 14 16:13:03 wishthinkpad.loc kernel: init_memory_mapping: [mem 0x19800000-0x19bfffff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: [mem 0x19800000-0x19bfffff] page 2M
    Jun 14 16:13:03 wishthinkpad.loc kernel: init_memory_mapping: [mem 0x18000000-0x197fffff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: [mem 0x18000000-0x197fffff] page 2M
    Jun 14 16:13:03 wishthinkpad.loc kernel: init_memory_mapping: [mem 0x00100000-0x17ffffff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: [mem 0x00100000-0x003fffff] page 4k
    Jun 14 16:13:03 wishthinkpad.loc kernel: [mem 0x00400000-0x17ffffff] page 2M
    Jun 14 16:13:03 wishthinkpad.loc kernel: init_memory_mapping: [mem 0x19c00000-0x19fcffff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: [mem 0x19c00000-0x19fcffff] page 4k
    Jun 14 16:13:03 wishthinkpad.loc kernel: BRK [0x01742000, 0x01742fff] PGTABLE
    Jun 14 16:13:03 wishthinkpad.loc kernel: RAMDISK: [mem 0x18af1000-0x18eddfff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: IBM Thinkpad 600 Series 2645 detected: force use of acpi=noirq
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: RSDP 000fd6e0 00014 (v00 IBM )
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: RSDT 19fd0000 00028 (v01 IBM TP600R 00000001 00000000)
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: FACP 19fd0100 00074 (v01 IBM TP600R 00000001 00000000)
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: DSDT 19fd0200 0B501 (v01 IBM TP600R 0000001D MSFT 0100000B)
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: FACS 19fdf000 00040
    Jun 14 16:13:03 wishthinkpad.loc kernel: 0MB HIGHMEM available.
    Jun 14 16:13:03 wishthinkpad.loc kernel: 415MB LOWMEM available.
    Jun 14 16:13:03 wishthinkpad.loc kernel: mapped low ram: 0 - 19fd0000
    Jun 14 16:13:03 wishthinkpad.loc kernel: low ram: 0 - 19fd0000
    Jun 14 16:13:03 wishthinkpad.loc kernel: BRK [0x01743000, 0x01743fff] PGTABLE
    Jun 14 16:13:03 wishthinkpad.loc kernel: Zone ranges:
    Jun 14 16:13:03 wishthinkpad.loc kernel: DMA [mem 0x00001000-0x00ffffff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: Normal [mem 0x01000000-0x19fcffff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: HighMem empty
    Jun 14 16:13:03 wishthinkpad.loc kernel: Movable zone start for each node
    Jun 14 16:13:03 wishthinkpad.loc kernel: Early memory node ranges
    Jun 14 16:13:03 wishthinkpad.loc kernel: node 0: [mem 0x00001000-0x0009efff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: node 0: [mem 0x00100000-0x19fcffff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: On node 0 totalpages: 106350
    Jun 14 16:13:03 wishthinkpad.loc kernel: free_area_init_node: node 0, pgdat c15aeb00, node_mem_map d9c90020
    Jun 14 16:13:03 wishthinkpad.loc kernel: DMA zone: 32 pages used for memmap
    Jun 14 16:13:03 wishthinkpad.loc kernel: DMA zone: 0 pages reserved
    Jun 14 16:13:03 wishthinkpad.loc kernel: DMA zone: 3998 pages, LIFO batch:0
    Jun 14 16:13:03 wishthinkpad.loc kernel: Normal zone: 800 pages used for memmap
    Jun 14 16:13:03 wishthinkpad.loc kernel: Normal zone: 102352 pages, LIFO batch:31
    Jun 14 16:13:03 wishthinkpad.loc kernel: Using APIC driver default
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: PM-Timer IO Port: 0xef08
    Jun 14 16:13:03 wishthinkpad.loc kernel: smpboot: Allowing 1 CPUs, 0 hotplug CPUs
    Jun 14 16:13:03 wishthinkpad.loc kernel: Local APIC disabled by BIOS -- reenabling.
    Jun 14 16:13:03 wishthinkpad.loc kernel: Could not enable APIC!
    Jun 14 16:13:03 wishthinkpad.loc kernel: APIC: disable apic facility
    Jun 14 16:13:03 wishthinkpad.loc kernel: APIC: switched to apic NOOP
    Jun 14 16:13:03 wishthinkpad.loc kernel: nr_irqs_gsi: 16
    Jun 14 16:13:03 wishthinkpad.loc kernel: PM: Registered nosave memory: 000000000009f000 - 00000000000a0000
    Jun 14 16:13:03 wishthinkpad.loc kernel: PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
    Jun 14 16:13:03 wishthinkpad.loc kernel: PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
    Jun 14 16:13:03 wishthinkpad.loc kernel: e820: [mem 0x1a000000-0xfffdffff] available for PCI devices
    Jun 14 16:13:03 wishthinkpad.loc kernel: Booting paravirtualized kernel on bare hardware
    Jun 14 16:13:03 wishthinkpad.loc kernel: setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:1 nr_node_ids:1
    Jun 14 16:13:03 wishthinkpad.loc kernel: PERCPU: Embedded 14 pages/cpu @d9c7e000 s33280 r0 d24064 u57344
    Jun 14 16:13:03 wishthinkpad.loc kernel: pcpu-alloc: s33280 r0 d24064 u57344 alloc=14*4096
    Jun 14 16:13:03 wishthinkpad.loc kernel: pcpu-alloc: [0] 0
    Jun 14 16:13:03 wishthinkpad.loc kernel: Built 1 zonelists in Zone order, mobility grouping on. Total pages: 105518
    Jun 14 16:13:03 wishthinkpad.loc kernel: Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=350fa8e9-36fb-4927-abaf-91f4b958a679 ro quiet pci=noacpi lapic apic acpi=noirq apm=on pci=use_crs
    Jun 14 16:13:03 wishthinkpad.loc kernel: PID hash table entries: 2048 (order: 1, 8192 bytes)
    Jun 14 16:13:03 wishthinkpad.loc kernel: Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    Jun 14 16:13:03 wishthinkpad.loc kernel: Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    Jun 14 16:13:03 wishthinkpad.loc kernel: __ex_table already sorted, skipping sort
    Jun 14 16:13:03 wishthinkpad.loc kernel: Initializing CPU#0
    Jun 14 16:13:03 wishthinkpad.loc kernel: allocated 851576 bytes of page_cgroup
    Jun 14 16:13:03 wishthinkpad.loc kernel: please try 'cgroup_disable=memory' option if you don't want memory cgroups
    Jun 14 16:13:03 wishthinkpad.loc kernel: Initializing HighMem for node 0 (00000000:00000000)
    Jun 14 16:13:03 wishthinkpad.loc kernel: Memory: 409236k/425792k available (4177k kernel code, 16164k reserved, 1706k data, 572k init, 0k highmem)
    Jun 14 16:13:03 wishthinkpad.loc kernel: [379B blob data]
    Jun 14 16:13:03 wishthinkpad.loc kernel: Checking if this processor honours the WP bit even in supervisor mode...Ok.
    Jun 14 16:13:03 wishthinkpad.loc kernel: SLUB: Genslabs=15, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    Jun 14 16:13:03 wishthinkpad.loc kernel: Preemptible hierarchical RCU implementation.
    Jun 14 16:13:03 wishthinkpad.loc kernel: RCU dyntick-idle grace-period acceleration is enabled.
    Jun 14 16:13:03 wishthinkpad.loc kernel: Dump stacks of tasks blocking RCU-preempt GP.
    Jun 14 16:13:03 wishthinkpad.loc kernel: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
    Jun 14 16:13:03 wishthinkpad.loc kernel: NR_IRQS:2304 nr_irqs:256 16
    Jun 14 16:13:03 wishthinkpad.loc kernel: CPU 0 irqstacks, hard=d9406000 soft=d9408000
    Jun 14 16:13:03 wishthinkpad.loc kernel: Console: colour dummy device 80x25
    Jun 14 16:13:03 wishthinkpad.loc kernel: console [tty0] enabled
    Jun 14 16:13:03 wishthinkpad.loc kernel: tsc: Fast TSC calibration using PIT
    Jun 14 16:13:03 wishthinkpad.loc kernel: tsc: Detected 363.989 MHz processor
    Jun 14 16:13:03 wishthinkpad.loc kernel: Calibrating delay loop (skipped), value calculated using timer frequency.. 728.31 BogoMIPS (lpj=1213296)
    Jun 14 16:13:03 wishthinkpad.loc kernel: pid_max: default: 32768 minimum: 301
    Jun 14 16:13:03 wishthinkpad.loc kernel: Security Framework initialized
    Jun 14 16:13:03 wishthinkpad.loc kernel: AppArmor: AppArmor disabled by boot time parameter
    Jun 14 16:13:03 wishthinkpad.loc kernel: Mount-cache hash table entries: 512
    Jun 14 16:13:03 wishthinkpad.loc kernel: Initializing cgroup subsys cpuacct
    Jun 14 16:13:03 wishthinkpad.loc kernel: Initializing cgroup subsys memory
    Jun 14 16:13:03 wishthinkpad.loc kernel: Initializing cgroup subsys devices
    Jun 14 16:13:03 wishthinkpad.loc kernel: Initializing cgroup subsys freezer
    Jun 14 16:13:03 wishthinkpad.loc kernel: Initializing cgroup subsys net_cls
    Jun 14 16:13:03 wishthinkpad.loc kernel: Initializing cgroup subsys blkio
    Jun 14 16:13:03 wishthinkpad.loc kernel: mce: CPU supports 5 MCE banks
    Jun 14 16:13:03 wishthinkpad.loc kernel: [113B blob data]
    Jun 14 16:13:03 wishthinkpad.loc kernel: Freeing SMP alternatives: 16k freed
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: Core revision 20130117
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: All ACPI Tables successfully acquired
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: setting ELCR to 0a00 (from 0800)
    Jun 14 16:13:03 wishthinkpad.loc kernel: ftrace: allocating 18428 entries in 36 pages
    Jun 14 16:13:03 wishthinkpad.loc kernel: smpboot: weird, boot CPU (#0) not listed by the BIOS
    Jun 14 16:13:03 wishthinkpad.loc kernel: smpboot: SMP motherboard not detected
    Jun 14 16:13:03 wishthinkpad.loc kernel: smpboot: Local APIC not detected. Using dummy APIC emulation.
    Jun 14 16:13:03 wishthinkpad.loc kernel: smpboot: SMP disabled
    Jun 14 16:13:03 wishthinkpad.loc kernel: Performance Events:
    Jun 14 16:13:03 wishthinkpad.loc kernel: no APIC, boot with the "lapic" boot parameter to force-enable it.
    Jun 14 16:13:03 wishthinkpad.loc kernel: no hardware sampling interrupt available.
    Jun 14 16:13:03 wishthinkpad.loc kernel: p6 PMU driver.
    Jun 14 16:13:03 wishthinkpad.loc kernel: ... version: 0
    Jun 14 16:13:03 wishthinkpad.loc kernel: ... bit width: 32
    Jun 14 16:13:03 wishthinkpad.loc kernel: ... generic registers: 2
    Jun 14 16:13:03 wishthinkpad.loc kernel: ... value mask: 00000000ffffffff
    Jun 14 16:13:03 wishthinkpad.loc kernel: ... max period: 000000007fffffff
    Jun 14 16:13:03 wishthinkpad.loc kernel: ... fixed-purpose events: 0
    Jun 14 16:13:03 wishthinkpad.loc kernel: ... event mask: 0000000000000003
    Jun 14 16:13:03 wishthinkpad.loc kernel: Brought up 1 CPUs
    Jun 14 16:13:03 wishthinkpad.loc kernel: smpboot: Total of 1 processors activated (728.31 BogoMIPS)
    Jun 14 16:13:03 wishthinkpad.loc kernel: NMI watchdog: disabled (cpu0): not supported (no LAPIC?)
    Jun 14 16:13:03 wishthinkpad.loc kernel: devtmpfs: initialized
    Jun 14 16:13:03 wishthinkpad.loc kernel: PM: Registering ACPI NVS region [mem 0x19fdf000-0x19fdffff] (4096 bytes)
    Jun 14 16:13:03 wishthinkpad.loc kernel: RTC time: 15:12:55, date: 06/14/13
    Jun 14 16:13:03 wishthinkpad.loc kernel: NET: Registered protocol family 16
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: bus type PCI registered
    Jun 14 16:13:03 wishthinkpad.loc kernel: PCI: PCI BIOS revision 2.10 entry at 0xfd880, last bus=7
    Jun 14 16:13:03 wishthinkpad.loc kernel: PCI: Using configuration type 1 for base access
    Jun 14 16:13:03 wishthinkpad.loc kernel: bio: create slab <bio-0> at 0
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: Added _OSI(Module Device)
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: Added _OSI(Processor Device)
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: Added _OSI(3.0 _SCP Extensions)
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: Added _OSI(Processor Aggregator Device)
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: EC: Look up EC in DSDT
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: Interpreter enabled
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: (supports S0 S1 S2 S3 S4 S5)
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: Using PIC for interrupt routing
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: Power Resource [PVID] (on)
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: Power Resource [PSIO] (on)
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: Power Resource [PRSD] (off)
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: Power Resource [PFN0] (off)
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: Power Resource [PFN1] (off)
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: Power Resource [PDCK] (on)
    Jun 14 16:13:03 wishthinkpad.loc kernel: acpi root: \_SB_.PCI0 notify handler is installed
    Jun 14 16:13:03 wishthinkpad.loc kernel: Found 1 acpi root devices
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: EC: GPE = 0x9, I/O: command/status = 0x66, data = 0x62
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: ACPI Dock Station Driver: 1 docks/bays found
    Jun 14 16:13:03 wishthinkpad.loc kernel: vgaarb: loaded
    Jun 14 16:13:03 wishthinkpad.loc kernel: PCI: Probing PCI hardware
    Jun 14 16:13:03 wishthinkpad.loc kernel: PCI: root bus 00: using default resources
    Jun 14 16:13:03 wishthinkpad.loc kernel: PCI: Probing PCI hardware (bus 00)
    Jun 14 16:13:03 wishthinkpad.loc kernel: PCI host bridge to bus 0000:00
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci_bus 0000:00: root bus resource [mem 0x00000000-0xffffffff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:00.0: [8086:7190] type 00 class 0x060000
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:00.0: reg 10: [mem 0x40000000-0x43ffffff pref]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:01.0: [8086:7191] type 01 class 0x060400
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.0: [104c:ac1d] type 02 class 0x060700
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.0: reg 10: [mem 0x50102000-0x50102fff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.0: supports D1 D2
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.0: PME# supported from D0 D1 D2 D3hot
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.1: [104c:ac1d] type 02 class 0x060700
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.1: reg 10: [mem 0x50101000-0x50101fff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.1: supports D1 D2
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.1: PME# supported from D0 D1 D2 D3hot
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:06.0: [1013:6001] type 00 class 0x040100
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:06.0: reg 10: [mem 0x50100000-0x50100fff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:06.0: reg 14: [mem 0x50000000-0x500fffff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:07.0: [8086:7110] type 00 class 0x068000
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:07.1: [8086:7111] type 00 class 0x010180
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:07.1: reg 20: [io 0xfcf0-0xfcff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:07.2: [8086:7112] type 00 class 0x0c0300
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:07.2: reg 20: [io 0x8400-0x841f]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:07.3: [8086:7113] type 00 class 0x068000
    Jun 14 16:13:03 wishthinkpad.loc kernel: [131B blob data]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:07.3: quirk: [io 0xef00-0xef3f] claimed by PIIX4 ACPI
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:07.3: quirk: [io 0xefa0-0xefaf] claimed by PIIX4 SMB
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:07.3: PIIX4 devres B PIO at 02f8-02ff
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:07.3: PIIX4 devres C PIO at 15e8-15ef
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:07.3: PIIX4 devres E PIO at 0538-053f
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:07.3: PIIX4 devres G PIO at 0130-013f
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:07.3: PIIX4 devres I PIO at 002e-002f
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:01:00.0: [10c8:0005] type 00 class 0x030000
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:01:00.0: reg 10: [mem 0xe0000000-0xe0ffffff pref]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:01:00.0: reg 14: [mem 0x70000000-0x703fffff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:01:00.0: reg 18: [mem 0x70400000-0x704fffff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:01:00.0: supports D1 D2
    Jun 14 16:13:03 wishthinkpad.loc kernel: vgaarb: device added: PCI:0000:01:00.0,decodes=io+mem,owns=io+mem,locks=none
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:01.0: PCI bridge to [bus 01]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:01.0: bridge window [io 0xd000-0xdfff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:01.0: bridge window [mem 0x70000000-0xdfffffff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:01.0: bridge window [mem 0xe0000000-0xf7ffffff pref]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 05
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci_bus 0000:06: busn_res: [bus 06-ff] end is updated to 09
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 09
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:07.0: PIIX/ICH IRQ router [8086:7110]
    Jun 14 16:13:03 wishthinkpad.loc kernel: PCI: pci_cache_line_size set to 32 bytes
    Jun 14 16:13:03 wishthinkpad.loc kernel: e820: reserve RAM buffer [mem 0x0009fc00-0x0009ffff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: e820: reserve RAM buffer [mem 0x19fd0000-0x1bffffff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: NetLabel: Initializing
    Jun 14 16:13:03 wishthinkpad.loc kernel: NetLabel: domain hash size = 128
    Jun 14 16:13:03 wishthinkpad.loc kernel: NetLabel: protocols = UNLABELED CIPSOv4
    Jun 14 16:13:03 wishthinkpad.loc kernel: NetLabel: unlabeled traffic allowed by default
    Jun 14 16:13:03 wishthinkpad.loc kernel: Switching to clocksource pit
    Jun 14 16:13:03 wishthinkpad.loc kernel: pnp: PnP ACPI init
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: bus type PNP registered
    Jun 14 16:13:03 wishthinkpad.loc kernel: system 00:00: [mem 0x00000000-0x0009ffff] could not be reserved
    Jun 14 16:13:03 wishthinkpad.loc kernel: system 00:00: [mem 0x000c0000-0x000cbfff] could not be reserved
    Jun 14 16:13:03 wishthinkpad.loc kernel: system 00:00: [mem 0x000f0000-0x000fffff] could not be reserved
    Jun 14 16:13:03 wishthinkpad.loc kernel: system 00:00: [mem 0x00100000-0x19ffffff] could not be reserved
    Jun 14 16:13:03 wishthinkpad.loc kernel: system 00:00: [mem 0xfffe0000-0xffffffff] has been reserved
    Jun 14 16:13:03 wishthinkpad.loc kernel: system 00:00: Plug and Play ACPI device, IDs PNP0c01 (active)
    Jun 14 16:13:03 wishthinkpad.loc kernel: pnp 00:01: Plug and Play ACPI device, IDs PNP0a03 (active)
    Jun 14 16:13:03 wishthinkpad.loc kernel: pnp 00:02: [dma 2]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pnp 00:02: Plug and Play ACPI device, IDs PNP0700 (active)
    Jun 14 16:13:03 wishthinkpad.loc kernel: pnp 00:03: Plug and Play ACPI device, IDs PNP0501 (disabled)
    Jun 14 16:13:03 wishthinkpad.loc kernel: pnp 00:04: Plug and Play ACPI device, IDs PNP0400 (active)
    Jun 14 16:13:03 wishthinkpad.loc kernel: pnp 00:05: [dma 3]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pnp 00:05: Plug and Play ACPI device, IDs IBM0071 PNP0511 (active)
    Jun 14 16:13:03 wishthinkpad.loc kernel: pnp 00:06: Plug and Play ACPI device, IDs CSC0110 (active)
    Jun 14 16:13:03 wishthinkpad.loc kernel: pnp 00:07: [dma 1]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pnp 00:07: [dma 0]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pnp 00:07: Plug and Play ACPI device, IDs CSC0100 (active)
    Jun 14 16:13:03 wishthinkpad.loc kernel: pnp 00:08: Plug and Play ACPI device, IDs CSC0101 PNPb02f (active)
    Jun 14 16:13:03 wishthinkpad.loc kernel: pnp 00:09: Plug and Play ACPI device, IDs CSC0103 (disabled)
    Jun 14 16:13:03 wishthinkpad.loc kernel: pnp 00:0a: [dma 7]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pnp 00:0a: Plug and Play ACPI device, IDs IBM3765 (active)
    Jun 14 16:13:03 wishthinkpad.loc kernel: pnp 00:0b: [dma 4]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pnp 00:0b: Plug and Play ACPI device, IDs PNP0200 (active)
    Jun 14 16:13:03 wishthinkpad.loc kernel: pnp 00:0c: Plug and Play ACPI device, IDs PNP0800 (active)
    Jun 14 16:13:03 wishthinkpad.loc kernel: system 00:0d: [io 0x15e0-0x15ef] has been reserved
    Jun 14 16:13:03 wishthinkpad.loc kernel: system 00:0d: [io 0xef00-0xef3f] has been reserved
    Jun 14 16:13:03 wishthinkpad.loc kernel: system 00:0d: [io 0xefa0-0xefaf] has been reserved
    Jun 14 16:13:03 wishthinkpad.loc kernel: system 00:0d: Plug and Play ACPI device, IDs PNP0c02 (active)
    Jun 14 16:13:03 wishthinkpad.loc kernel: pnp 00:0e: Plug and Play ACPI device, IDs PNP0c04 (active)
    Jun 14 16:13:03 wishthinkpad.loc kernel: pnp 00:0f: Plug and Play ACPI device, IDs PNP0303 (active)
    Jun 14 16:13:03 wishthinkpad.loc kernel: pnp 00:10: Plug and Play ACPI device, IDs IBM3780 PNP0f13 (active)
    Jun 14 16:13:03 wishthinkpad.loc kernel: pnp 00:11: Plug and Play ACPI device, IDs PNP0b00 (active)
    Jun 14 16:13:03 wishthinkpad.loc kernel: pnp: PnP ACPI: found 18 devices
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: bus type PNP unregistered
    Jun 14 16:13:03 wishthinkpad.loc kernel: Switching to clocksource acpi_pm
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.0: res[15]=[mem 0x04000000-0x03ffffff pref] get_res_add_size add_size 4000000
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.0: res[16]=[mem 0x04000000-0x03ffffff] get_res_add_size add_size 4000000
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.1: res[15]=[mem 0x04000000-0x03ffffff pref] get_res_add_size add_size 4000000
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.1: res[16]=[mem 0x04000000-0x03ffffff] get_res_add_size add_size 4000000
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.0: res[13]=[io 0x0100-0x00ff] get_res_add_size add_size 100
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.0: res[14]=[io 0x0100-0x00ff] get_res_add_size add_size 100
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.1: res[13]=[io 0x0100-0x00ff] get_res_add_size add_size 100
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.1: res[14]=[io 0x0100-0x00ff] get_res_add_size add_size 100
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.0: BAR 15: assigned [mem 0x1c000000-0x1fffffff pref]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.0: BAR 16: assigned [mem 0x20000000-0x23ffffff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.1: BAR 15: assigned [mem 0x24000000-0x27ffffff pref]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.1: BAR 16: assigned [mem 0x28000000-0x2bffffff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.0: BAR 13: assigned [io 0x1000-0x10ff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.0: BAR 14: assigned [io 0x1400-0x14ff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.1: BAR 13: assigned [io 0x1800-0x18ff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.1: BAR 14: assigned [io 0x1c00-0x1cff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:01.0: PCI bridge to [bus 01]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:01.0: bridge window [io 0xd000-0xdfff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:01.0: bridge window [mem 0x70000000-0xdfffffff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:01.0: bridge window [mem 0xe0000000-0xf7ffffff pref]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.0: CardBus bridge to [bus 02-05]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.0: bridge window [io 0x1000-0x10ff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.0: bridge window [io 0x1400-0x14ff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.0: bridge window [mem 0x1c000000-0x1fffffff pref]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.0: bridge window [mem 0x20000000-0x23ffffff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.1: CardBus bridge to [bus 06-09]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.1: bridge window [io 0x1800-0x18ff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.1: bridge window [io 0x1c00-0x1cff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.1: bridge window [mem 0x24000000-0x27ffffff pref]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.1: bridge window [mem 0x28000000-0x2bffffff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: PCI: setting IRQ 11 as level-triggered
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.0: found PCI INT A -> IRQ 11
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.0: sharing IRQ 11 with 0000:01:00.0
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:02.1: found PCI INT B -> IRQ 11
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci_bus 0000:00: resource 4 [io 0x0000-0xffff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci_bus 0000:00: resource 5 [mem 0x00000000-0xffffffff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci_bus 0000:01: resource 0 [io 0xd000-0xdfff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci_bus 0000:01: resource 1 [mem 0x70000000-0xdfffffff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci_bus 0000:01: resource 2 [mem 0xe0000000-0xf7ffffff pref]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci_bus 0000:02: resource 0 [io 0x1000-0x10ff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci_bus 0000:02: resource 1 [io 0x1400-0x14ff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci_bus 0000:02: resource 2 [mem 0x1c000000-0x1fffffff pref]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci_bus 0000:02: resource 3 [mem 0x20000000-0x23ffffff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci_bus 0000:06: resource 0 [io 0x1800-0x18ff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci_bus 0000:06: resource 1 [io 0x1c00-0x1cff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci_bus 0000:06: resource 2 [mem 0x24000000-0x27ffffff pref]
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci_bus 0000:06: resource 3 [mem 0x28000000-0x2bffffff]
    Jun 14 16:13:03 wishthinkpad.loc kernel: NET: Registered protocol family 2
    Jun 14 16:13:03 wishthinkpad.loc kernel: TCP established hash table entries: 4096 (order: 3, 32768 bytes)
    Jun 14 16:13:03 wishthinkpad.loc kernel: TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
    Jun 14 16:13:03 wishthinkpad.loc kernel: TCP: Hash tables configured (established 4096 bind 4096)
    Jun 14 16:13:03 wishthinkpad.loc kernel: TCP: reno registered
    Jun 14 16:13:03 wishthinkpad.loc kernel: UDP hash table entries: 256 (order: 1, 8192 bytes)
    Jun 14 16:13:03 wishthinkpad.loc kernel: UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
    Jun 14 16:13:03 wishthinkpad.loc kernel: NET: Registered protocol family 1
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:00.0: Limiting direct PCI/PCI transfers
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:00:07.2: found PCI INT D -> IRQ 11
    Jun 14 16:13:03 wishthinkpad.loc kernel: pci 0000:01:00.0: Boot video device
    Jun 14 16:13:03 wishthinkpad.loc kernel: PCI: CLS 32 bytes, default 32
    Jun 14 16:13:03 wishthinkpad.loc kernel: Unpacking initramfs...
    Jun 14 16:13:03 wishthinkpad.loc kernel: Freeing initrd memory: 4020k freed
    Jun 14 16:13:03 wishthinkpad.loc kernel: IBM machine detected. Enabling interrupts during APM calls.
    Jun 14 16:13:03 wishthinkpad.loc kernel: apm: BIOS not found.
    Jun 14 16:13:03 wishthinkpad.loc kernel: Scanning for low memory corruption every 60 seconds
    Jun 14 16:13:03 wishthinkpad.loc kernel: audit: initializing netlink socket (disabled)
    Jun 14 16:13:03 wishthinkpad.loc kernel: type=2000 audit(1371222775.660:1): initialized
    Jun 14 16:13:03 wishthinkpad.loc kernel: HugeTLB registered 4 MB page size, pre-allocated 0 pages
    Jun 14 16:13:03 wishthinkpad.loc kernel: VFS: Disk quotas dquot_6.5.2
    Jun 14 16:13:03 wishthinkpad.loc kernel: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    Jun 14 16:13:03 wishthinkpad.loc kernel: msgmni has been set to 807
    Jun 14 16:13:03 wishthinkpad.loc kernel: Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
    Jun 14 16:13:03 wishthinkpad.loc kernel: io scheduler noop registered
    Jun 14 16:13:03 wishthinkpad.loc kernel: io scheduler deadline registered
    Jun 14 16:13:03 wishthinkpad.loc kernel: io scheduler cfq registered (default)
    Jun 14 16:13:03 wishthinkpad.loc kernel: vesafb: mode is 1024x768x24, linelength=3072, pages=0
    Jun 14 16:13:03 wishthinkpad.loc kernel: vesafb: scrolling: redraw
    Jun 14 16:13:03 wishthinkpad.loc kernel: vesafb: Truecolor: size=0:8:8:8, shift=0:16:8:0
    Jun 14 16:13:03 wishthinkpad.loc kernel: vesafb: framebuffer at 0xe0000000, mapped to 0xda800000, using 2304k, total 2304k
    Jun 14 16:13:03 wishthinkpad.loc kernel: Console: switching to colour frame buffer device 128x48
    Jun 14 16:13:03 wishthinkpad.loc kernel: fb0: VESA VGA frame buffer device
    Jun 14 16:13:03 wishthinkpad.loc kernel: intel_idle: does not run on family 6 model 6
    Jun 14 16:13:03 wishthinkpad.loc kernel: GHES: HEST is not enabled!
    Jun 14 16:13:03 wishthinkpad.loc kernel: isapnp: Scanning for PnP cards...
    Jun 14 16:13:03 wishthinkpad.loc kernel: isapnp: No Plug & Play device found
    Jun 14 16:13:03 wishthinkpad.loc kernel: Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
    Jun 14 16:13:03 wishthinkpad.loc kernel: serial 00:03: [io 0x03e8-0x03ef]
    Jun 14 16:13:03 wishthinkpad.loc kernel: serial 00:03: [io 0x02e8-0x02ef]
    Jun 14 16:13:03 wishthinkpad.loc kernel: serial 00:03: unable to assign resources
    Jun 14 16:13:03 wishthinkpad.loc kernel: serial: probe of 00:03 failed with error -16
    Jun 14 16:13:03 wishthinkpad.loc kernel: serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a NS16550A
    Jun 14 16:13:03 wishthinkpad.loc kernel: i8042: PNP: PS/2 Controller [PNP0303:KBD0,PNP0f13:MOU0] at 0x60,0x64 irq 1,12
    Jun 14 16:13:03 wishthinkpad.loc kernel: serio: i8042 KBD port at 0x60,0x64 irq 1
    Jun 14 16:13:03 wishthinkpad.loc kernel: serio: i8042 AUX port at 0x60,0x64 irq 12
    Jun 14 16:13:03 wishthinkpad.loc kernel: mousedev: PS/2 mouse device common for all mice
    Jun 14 16:13:03 wishthinkpad.loc kernel: rtc_cmos 00:11: RTC can wake from S4
    Jun 14 16:13:03 wishthinkpad.loc kernel: rtc_cmos 00:11: rtc core: registered rtc_cmos as rtc0
    Jun 14 16:13:03 wishthinkpad.loc kernel: rtc_cmos 00:11: alarms up to one month, y3k, 242 bytes nvram
    Jun 14 16:13:03 wishthinkpad.loc kernel: cpuidle: using governor ladder
    Jun 14 16:13:03 wishthinkpad.loc kernel: cpuidle: using governor menu
    Jun 14 16:13:03 wishthinkpad.loc kernel: EFI Variables Facility v0.08 2004-May-17
    Jun 14 16:13:03 wishthinkpad.loc kernel: drop_monitor: Initializing network drop monitor service
    Jun 14 16:13:03 wishthinkpad.loc kernel: TCP: cubic registered
    Jun 14 16:13:03 wishthinkpad.loc kernel: NET: Registered protocol family 10
    Jun 14 16:13:03 wishthinkpad.loc kernel: NET: Registered protocol family 17
    Jun 14 16:13:03 wishthinkpad.loc kernel: Key type dns_resolver registered
    Jun 14 16:13:03 wishthinkpad.loc kernel: Using IPI No-Shortcut mode
    Jun 14 16:13:03 wishthinkpad.loc kernel: PM: Hibernation image not present or could not be loaded.
    Jun 14 16:13:03 wishthinkpad.loc kernel: registered taskstats version 1
    Jun 14 16:13:03 wishthinkpad.loc kernel: input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
    Jun 14 16:13:03 wishthinkpad.loc kernel: Magic number: 1:809:234
    Jun 14 16:13:03 wishthinkpad.loc kernel: rtc_cmos 00:11: setting system clock to 2013-06-14 15:12:57 UTC (1371222777)
    Jun 14 16:13:03 wishthinkpad.loc kernel: Freeing unused kernel memory: 572k freed
    Jun 14 16:13:03 wishthinkpad.loc kernel: Write protecting the kernel text: 4180k
    Jun 14 16:13:03 wishthinkpad.loc kernel: Write protecting the kernel read-only data: 1300k
    Jun 14 16:13:03 wishthinkpad.loc systemd-udevd[37]: starting version 204
    Jun 14 16:13:03 wishthinkpad.loc kernel: tsc: Refined TSC clocksource calibration: 363.959 MHz
    Jun 14 16:13:03 wishthinkpad.loc kernel: Switching to clocksource tsc
    Jun 14 16:13:03 wishthinkpad.loc kernel: Floppy drive(s): fd0 is 1.44M
    Jun 14 16:13:03 wishthinkpad.loc kernel: FDC 0 is a National Semiconductor PC87306
    Jun 14 16:13:03 wishthinkpad.loc kernel: SCSI subsystem initialized
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: bus type USB registered
    Jun 14 16:13:03 wishthinkpad.loc kernel: usbcore: registered new interface driver usbfs
    Jun 14 16:13:03 wishthinkpad.loc kernel: usbcore: registered new interface driver hub
    Jun 14 16:13:03 wishthinkpad.loc kernel: usbcore: registered new device driver usb
    Jun 14 16:13:03 wishthinkpad.loc kernel: uhci_hcd: USB Universal Host Controller Interface driver
    Jun 14 16:13:03 wishthinkpad.loc kernel: uhci_hcd 0000:00:07.2: found PCI INT D -> IRQ 11
    Jun 14 16:13:03 wishthinkpad.loc kernel: uhci_hcd 0000:00:07.2: UHCI Host Controller
    Jun 14 16:13:03 wishthinkpad.loc kernel: uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1
    Jun 14 16:13:03 wishthinkpad.loc kernel: uhci_hcd 0000:00:07.2: irq 11, io base 0x00008400
    Jun 14 16:13:03 wishthinkpad.loc kernel: hub 1-0:1.0: USB hub found
    Jun 14 16:13:03 wishthinkpad.loc kernel: hub 1-0:1.0: 2 ports detected
    Jun 14 16:13:03 wishthinkpad.loc kernel: ACPI: bus type ATA registered
    Jun 14 16:13:03 wishthinkpad.loc kernel: libata version 3.00 loaded.
    Jun 14 16:13:03 wishthinkpad.loc kernel: ata_piix 0000:00:07.1: version 2.13
    Jun 14 16:13:03 wishthinkpad.loc kernel: scsi0 : ata_piix
    Jun 14 16:13:03 wishthinkpad.loc kernel: scsi1 : ata_piix
    Jun 14 16:13:03 wishthinkpad.loc kernel: ata1: PATA max UDMA/33 cmd 0x1f0 ctl 0x3f6 bmdma 0xfcf0 irq 14
    Jun 14 16:13:03 wishthinkpad.loc kernel: ata2: PATA max UDMA/33 cmd 0x170 ctl 0x376 bmdma 0xfcf8 irq 15
    Jun 14 16:13:03 wishthinkpad.loc kernel: ata2.00: ATAPI: QSI CD-RW/DVD-ROM SBW-242, UD22, max UDMA/33
    Jun 14 16:13:03 wishthinkpad.loc kernel: ata1.00: ATA-6: TOSHIBA MK4032GAX, AD101A, max UDMA/100
    Jun 14 16:13:03 wishthinkpad.loc kernel: ata1.00: 78140160 sectors, multi 16: LBA48
    Jun 14 16:13:03 wishthinkpad.loc kernel: ata2.00: configured for UDMA/33
    Jun 14 16:13:03 wishthinkpad.loc kernel: ata1.00: configured for UDMA/33
    Jun 14 16:13:03 wishthinkpad.loc kernel: scsi 0:0:0:0: Direct-Access ATA TOSHIBA MK4032GA AD10 PQ: 0 ANSI: 5
    Jun 14 16:13:03 wishthinkpad.loc kernel: scsi 1:0:0:0: CD-ROM QSI CDRW/DVD SBW-242 UD22 PQ: 0 ANSI: 5
    Jun 14 16:13:03 wishthinkpad.loc kernel: usb 1-1: new full-speed USB device number 2 using uhci_hcd
    Jun 14 16:13:03 wishthinkpad.loc kernel: sd 0:0:0:0: [sda] 78140160 512-byte logical blocks: (40.0 GB/37.2 GiB)
    Jun 14 16:13:03 wishthinkpad.loc kernel: sd 0:0:0:0: [sda] Write Protect is off
    Jun 14 16:13:03 wishthinkpad.loc kernel: sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
    Jun 14 16:13:03 wishthinkpad.loc kernel: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    Jun 14 16:13:03 wishthinkpad.loc kernel: sr0: scsi3-mmc drive: 4x/24x writer cd/rw xa/form2 cdda tray
    Jun 14 16:13:03 wishthinkpad.loc kernel: cdrom: Uniform CD-ROM driver Revision: 3.20
    Jun 14 16:13:03 wishthinkpad.loc kernel: sr 1:0:0:0: Attached scsi CD-ROM sr0
    Jun 14 16:13:03 wishthinkpad.loc kernel: sda: sda1 sda2 < sda5 sda6 sda7 >
    Jun 14 16:13:03 wishthinkpad.loc kernel: sd 0:0:0:0: [sda] Attached SCSI disk
    Jun 14 16:13:03 wishthinkpad.loc kernel: hub 1-1:1.0: USB hub found
    Jun 14 16:13:03 wishthinkpad.loc kernel: hub 1-1:1.0: 4 ports detected
    Jun 14 16:13:03 wishthinkpad.loc kernel: usb 1-1.1: new full-speed USB device number 3 using uhci_hcd
    Jun 14 16:13:03 wishthinkpad.loc kernel: usb 1-1.2: new low-speed USB device number 4 using uhci_hcd
    Jun 14 16:13:03 wishthinkpad.loc kernel: hidraw: raw HID events driver (C) Jiri Kosina
    Jun 14 16:13:03 wishthinkpad.loc kernel: usbcore: registered new interface driver usbhid
    Jun 14 16:13:03 wishthinkpad.loc kernel: usbhid: USB HID core driver
    Jun 14 16:13:03 wishthinkpad.loc kernel: usb 1-1.4: new full-speed USB device number 5 using uhci_hcd
    Jun 14 16:13:03 wishthinkpad.loc kernel: input: MLK Silvercrest OM1008 as /devices/pci0000:00/0000:00:07.2/usb1/1-1/1-1.2/1-1.2:1.0/input/input1
    Jun 14 16:13:03 wishthinkpad.loc kernel: hid-generic 0003:04FC:0538.0001: input,hiddev0,hidraw0: USB HID v1.10 Mouse [MLK Silvercrest OM1008] on usb-0000:00:07.2-1.2/input0
    Jun 14 16:13:03 wishthinkpad.loc kernel: usb 1-1.4: Parent hub missing LPM exit latency info. Power management will be impacted.
    Jun 14 16:13:03 wishthinkpad.loc kernel: Initializing USB Mass Storage driver...
    Jun 14 16:13:03 wishthinkpad.loc kernel: scsi2 : usb-storage 1-1.4:1.0
    Jun 14 16:13:03 wishthinkpad.loc kernel: usbcore: registered new interface driver usb-storage
    Jun 14 16:13:03 wishthinkpad.loc kernel: USB Mass Storage support registered.
    Jun 14 16:13:03 wishthinkpad.loc kernel: EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
    Jun 14 16:13:03 wishthinkpad.loc kernel: scsi 2:0:0:0: Direct-Access Corsair Voyager GT 3.0 1.00 PQ: 0 ANSI: 4
    Jun 14 16:13:03 wishthinkpad.loc kernel: sd 2:0:0:0: [sdb] 31334400 512-byte logical blocks: (16.0 GB/14.9 GiB)
    Jun 14 16:13:03 wishthinkpad.loc kernel: sd 2:0:0:0: [sdb] Write Protect is off
    Jun 14 16:13:03 wishthinkpad.loc kernel: sd 2:0:0:0: [sdb] Mode Sense: bf 00 00 00
    Jun 14 16:13:03 wishthinkpad.loc kernel: sd 2:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
    Jun 14 16:13:03 wishthinkpad.loc kernel: sdb: sdb1
    Jun 14 16:13:03 wishthinkpad.loc kernel: sd 2:0:0:0: [sdb] Attached SCSI removable disk
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: systemd 204 running in system mode. (+PAM -LIBWRAP -AUDIT -SELINUX -IMA -SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ)
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Set hostname to <wishthinkpad.loc>.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Cannot add dependency job for unit syslog-ng.service, ignoring: Unit syslog-ng.service failed to load: No such file or directory. See system logs and 'systemctl status syslog-ng.service' for details.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Starting Remote File Systems.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Reached target Remote File Systems.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Expecting device sys-subsystem-net-devices-wlan0.device...
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Starting Delayed Shutdown Socket.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Listening on Delayed Shutdown Socket.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Starting Device-mapper event daemon FIFOs.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Listening on Device-mapper event daemon FIFOs.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Starting LVM2 metadata daemon socket.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Listening on LVM2 metadata daemon socket.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Starting Encrypted Volumes.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Reached target Encrypted Volumes.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Starting Paths.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Reached target Paths.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Starting udev Kernel Socket.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Listening on udev Kernel Socket.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Starting udev Control Socket.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Listening on udev Control Socket.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Starting Journal Socket.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Listening on Journal Socket.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Mounting Huge Pages File System...
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Starting Create static device nodes in /dev...
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Starting Apply Kernel Variables...
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Started Load Kernel Modules.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Mounted FUSE Control File System.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Mounting Configuration File System...
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Starting udev Coldplug all Devices...
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Starting Journal Service...
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Started Journal Service.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Started Set Up Additional Binary Formats.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Mounting Debug File System...
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Mounting POSIX Message Queue File System...
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Starting Setup Virtual Console...
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Expecting device dev-disk-by\x2duuid-0a64bde1\x2d82c3\x2d4cfb\x2dab68\x2d7178564d8ed5.device...
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Started File System Check on Root Device.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Starting Remount Root and Kernel File Systems...
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Expecting device dev-disk-by\x2duuid-567947ca\x2dcba3\x2d42e4\x2d9677\x2de9ddeecd2c26.device...
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Expecting device dev-disk-by\x2duuid-e4eb21d7\x2d8ea8\x2d4059\x2db44b\x2d778690e44675.device...
    Jun 14 16:13:03 wishthinkpad.loc kernel: EXT4-fs (sda1): re-mounted. Opts: (null)
    Jun 14 16:13:03 wishthinkpad.loc systemd-udevd[99]: starting version 204
    Jun 14 16:13:03 wishthinkpad.loc systemd-journal[90]: Journal started
    Jun 14 16:13:03 wishthinkpad.loc systemd-sysctl[87]: Duplicate assignment of kernel/sysrq in file '/usr/lib/sysctl.d/50-default.conf', ignoring.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Started Apply Kernel Variables.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Started udev Coldplug all Devices.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Started Create static device nodes in /dev.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Starting udev Kernel Device Manager...
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Mounted Huge Pages File System.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Mounted POSIX Message Queue File System.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Mounted Debug File System.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Mounted Configuration File System.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Started Remount Root and Kernel File Systems.
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Starting Load Random Seed...
    Jun 14 16:13:03 wishthinkpad.loc systemd[1]: Mounted /tmp.
    Jun 14 16:13:04 wishthinkpad.loc systemd[1]: Started Load Random Seed.
    Jun 14 16:13:04 wishthinkpad.loc systemd[1]: Started Setup Virtual Console.
    Jun 14 16:13:05 wishthinkpad.loc kernel: input: Lid Switch as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input2
    Jun 14 16:13:05 wishthinkpad.loc kernel: ACPI: Lid Switch [LID0]
    Jun 14 16:13:05 wishthinkpad.loc kernel: input: Sleep Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input3
    Jun 14 16:13:05 wishthinkpad.loc kernel: ACPI: Sleep Button [SLPB]
    Jun 14 16:13:05 wishthinkpad.loc kernel: input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input4
    Jun 14 16:13:05 wishthinkpad.loc kernel: ACPI: Power Button [PWRF]
    Jun 14 16:13:05 wishthinkpad.loc kernel: Linux agpgart interface v0.103
    Jun 14 16:13:05 wishthinkpad.loc kernel: tsc: Marking TSC unstable due to TSC halts in idle
    Jun 14 16:13:05 wishthinkpad.loc kernel: Switching to clocksource acpi_pm
    Jun 14 16:13:05 wishthinkpad.loc kernel: ACPI: acpi_idle registered with cpuidle
    Jun 14 16:13:05 wishthinkpad.loc kernel: piix4_smbus 0000:00:07.3: IBM system detected; this module may corrupt your serial eeprom! Refusing to load module!
    Jun 14 16:13:05 wishthinkpad.loc kernel: piix4_smbus: probe of 0000:00:07.3 failed with error -1
    Jun 14 16:13:06 wishthinkpad.loc kernel: yenta_cardbus 0000:00:02.0: CardBus bridge found [1014:00eb]
    Jun 14 16:13:06 wishthinkpad.loc kernel: yenta_cardbus 0000:00:02.0: Enabling burst memory read transactions
    Jun 14 16:13:06 wishthinkpad.loc kernel: yenta_cardbus 0000:00:02.0: Using CSCINT to route CSC interrupts to PCI
    Jun 14 16:13:06 wishthinkpad.loc kernel: yenta_cardbus 0000:00:02.0: Routing CardBus interrupts to PCI
    Jun 14 16:13:06 wishthinkpad.loc kernel: yenta_cardbus 0000:00:02.0: TI: mfunc 0xfba97543, devctl 0x62
    Jun 14 16:13:06 wishthinkpad.loc kernel: pci_hotplug: PCI Hot Plug PCI Core version: 0.5
    Jun 14 16:13:06 wishthinkpad.loc kernel: gameport gameport0: NS558 PnP Gameport is pnp00:08/gameport0, io 0x200, speed 685kHz
    Jun 14 16:13:06 wishthinkpad.loc kernel: parport_pc 00:04: reported by Plug and Play ACPI
    Jun 14 16:13:06 wishthinkpad.loc kernel: parport0: PC-style at 0x3bc, irq 7 [PCSPP,TRISTATE]
    Jun 14 16:13:06 wishthinkpad.loc kernel: NET: Registered protocol family 23
    Jun 14 16:13:06 wishthinkpad.loc kernel: ACPI: AC Adapter [AC] (on-line)
    Jun 14 16:13:06 wishthinkpad.loc kernel: yenta_cardbus 0000:00:02.0: ISA IRQ mask 0x0418, PCI irq 11
    Jun 14 16:13:06 wishthinkpad.loc kernel: yenta_cardbus 0000:00:02.0: Socket status: 30000006
    Jun 14 16:13:06 wishthinkpad.loc kernel: nsc-ircc, chip->init
    Jun 14 16:13:06 wishthinkpad.loc kernel: nsc-ircc, Found chip at base=0x02e
    Jun 14 16:13:06 wishthinkpad.loc kernel: nsc-ircc, driver loaded (Dag Brattli)
    Jun 14 16:13:06 wishthinkpad.loc kernel: nsc_ircc_open(), can't get iobase of 0x3f8
    Jun 14 16:13:06 wishthinkpad.loc kernel: nsc-ircc, Found chip at base=0x02e
    Jun 14 16:13:06 wishthinkpad.loc kernel: nsc-ircc, driver loaded (Dag Brattli)
    Jun 14 16:13:06 wishthinkpad.loc kernel: nsc_ircc_open(), can't get iobase of 0x3f8
    Jun 14 16:13:06 wishthinkpad.loc kernel: nsc-ircc 00:05: disabled
    Jun 14 16:13:06 wishthinkpad.loc kernel: yenta_cardbus 0000:00:02.1: CardBus bridge found [1014:00eb]
    Jun 14 16:13:06 wishthinkpad.loc kernel: yenta_cardbus 0000:00:02.1: Using CSCINT to route CSC interrupts to PCI
    Jun 14 16:13:06 wishthinkpad.loc kernel: yenta_cardbus 0000:00:02.1: Routing CardBus interrupts to PCI
    Jun 14 16:13:06 wishthinkpad.loc kernel: yenta_cardbus 0000:00:02.1: TI: mfunc 0xfba97543, devctl 0x62
    Jun 14 16:13:06 wishthinkpad.loc kernel: thermal LNXTHERM:00: registered as thermal_zone0
    Jun 14 16:13:06 wishthinkpad.loc kernel: ACPI: Thermal Zone [THM0] (77 C)
    Jun 14 16:13:06 wishthinkpad.loc kernel: thermal LNXTHERM:01: registered as thermal_zone1
    Jun 14 16:13:06 wishthinkpad.loc kernel: ACPI: Thermal Zone [THM2] (35 C)
    Jun 14 16:13:06 wishthinkpad.loc kernel: ACPI: Fan [FN00] (off)
    Jun 14 16:13:06 wishthinkpad.loc kernel: ACPI: Fan [FN01] (off)
    Jun 14 16:13:06 wishthinkpad.loc kernel: ACPI: Fan [FN20] (off)
    Jun 14 16:13:06 wishthinkpad.loc kernel: ACPI: Fan [FN21] (off)
    Jun 14 16:13:06 wishthinkpad.loc kernel: ACPI: Fan [FN60] (off)
    Jun 14 16:13:06 wishthinkpad.loc kernel: ACPI: Fan [FN61] (off)
    Jun 14 16:13:06 wishthinkpad.loc kernel: ACPI: Fan [FN70] (off)
    Jun 14 16:13:06 wishthinkpad.loc kernel: ACPI: Fan [FN71] (off)
    Jun 14 16:13:06 wishthinkpad.loc kernel: thermal LNXTHERM:02: registered as thermal_zone2
    Jun 14 16:13:06 wishthinkpad.loc kernel: ACPI: Thermal Zone [THM6] (27 C)
    Jun 14 16:13:06 wishthinkpad.loc kernel: thermal LNXTHERM:03: registered as thermal_zone3
    Jun 14 16:13:06 wishthinkpad.loc kernel: ACPI: Thermal Zone [THM7] (27 C)
    Jun 14 16:13:06 wishthinkpad.loc systemd[1]: Starting Sound Card.
    Jun 14 16:13:06 wishthinkpad.loc systemd[1]: Reached target Sound Card.
    Jun 14 16:13:07 wishthinkpad.loc kernel: cfg80211: Calling CRDA to update world regulatory domain
    Jun 14 16:13:07 wishthinkpad.loc kernel: microcode: CPU0 sig=0x66a, pf=0x8, revision=0xa
    Jun 14 16:13:07 wishthinkpad.loc kernel: microcode: Microcode Update Driver: v2.00 <[email protected]>, Peter Oruba
    Jun 14 16:13:07 wishthinkpad.loc kernel: psmouse serio1: alps: Unknown ALPS touchpad: E7=10 00 64, EC=10 00 64
    Jun 14 16:13:07 wishthinkpad.loc kernel: psmouse serio1: hgpk: ID: 10 00 64
    Jun 14 16:13:08 wishthinkpad.loc kernel: psmouse serio1: trackpoint: IBM TrackPoint firmware: 0x0b, buttons: 3/3
    Jun 14 16:13:08 wishthinkpad.loc kernel: input: TPPS/2 IBM TrackPoint as /devices/platform/i8042/serio1/input/input5
    Jun 14 16:13:08 wishthinkpad.loc kernel: usb 1-1.1: reset full-speed USB device number 3 using uhci_hcd
    Jun 14 16:13:08 wishthinkpad.loc systemd[1]: Found device TOSHIBA_MK4032GAX.
    Jun 14 16:13:08 wishthinkpad.loc systemd[1]: Starting File System Check on /dev/disk/by-uuid/567947ca-cba3-42e4-9677-e9ddeecd2c26...
    Jun 14 16:13:09 wishthinkpad.loc kernel: phy0 -> rt2x00_set_chip: Info - Chipset detected - rt: 2573, rf: 0002, rev: 000a.
    Jun 14 16:13:09 wishthinkpad.loc systemd[1]: Found device TOSHIBA_MK4032GAX.
    Jun 14 16:13:09 wishthinkpad.loc systemd[1]: Activating swap /dev/disk/by-uuid/0a64bde1-82c3-4cfb-ab68-7178564d8ed5...
    Jun 14 16:13:09 wishthinkpad.loc kernel: ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
    Jun 14 16:13:09 wishthinkpad.loc kernel: usbcore: registered new interface driver rt73usb
    Jun 14 16:13:09 wishthinkpad.loc kernel: Adding 995992k swap on /dev/sda5. Priority:-1 extents:1 across:995992k
    Jun 14 16:13:09 wishthinkpad.loc systemd[1]: Activated swap /dev/disk/by-uuid/0a64bde1-82c3-4cfb-ab68-7178564d8ed5.
    Jun 14 16:13:09 wishthinkpad.loc systemd[1]: Starting Swap.
    Jun 14 16:13:09 wishthinkpad.loc systemd[1]: Reached target Swap.
    Jun 14 16:13:09 wishthinkpad.loc systemd-fsck[140]: /dev/sda6: clean, 62025/65280 files, 185105/261048 blocks
    Jun 14 16:13:09 wishthinkpad.loc systemd[1]: Found device TOSHIBA_MK4032GAX.
    Jun 14 16:13:09 wishthinkpad.loc systemd[1]: Starting File System Check on /dev/disk/by-uuid/e4eb21d7-8ea8-4059-b44b-778690e44675...
    Jun 14 16:13:09 wishthinkpad.loc systemd[1]: Started File System Check on /dev/disk/by-uuid/567947ca-cba3-42e4-9677-e9ddeecd2c26.
    Jun 14 16:13:09 wishthinkpad.loc systemd[1]: Mounting /home...
    Jun 14 16:13:09 wishthinkpad.loc kernel: EXT4-fs (sda6): mounted filesystem with ordered data mode. Opts: (null)
    Jun 14 16:13:09 wishthinkpad.loc systemd[1]: Mounted /home.
    Jun 14 16:13:09 wishthinkpad.loc kernel: ppdev: user-space parallel port driver
    Jun 14 16:13:09 wishthinkpad.loc systemd-fsck[152]: Data: clean, 249/1692432 files, 5642949/6757332 blocks
    Jun 14 16:13:10 wishthinkpad.loc systemd[1]: Started File System Check on /dev/disk/by-uuid/e4eb21d7-8ea8-4059-b44b-778690e44675.
    Jun 14 16:13:10 wishthinkpad.loc systemd[1]: Mounting /media/Extra...
    Jun 14 16:13:10 wishthinkpad.loc systemd-sysctl[165]: Duplicate assignment of kernel/sysrq in file '/usr/lib/sysctl.d/50-default.conf', ignoring.
    Jun 14 16:13:10 wishthinkpad.loc systemd[1]: Mounted /media/Extra.
    Jun 14 16:13:10 wishthinkpad.loc systemd[1]: Starting Local File Systems.
    Jun 14 16:13:10 wishthinkpad.loc systemd[1]: Reached target Local File Systems.
    Jun 14 16:13:10 wishthinkpad.loc systemd[1]: Starting Trigger Flushing of Journal to Persistent Storage...
    Jun 14 16:13:10 wishthinkpad.loc systemd[1]: Starting Recreate Volatile Files and Directories...
    Jun 14 16:13:10 wishthinkpad.loc systemd[1]: Found device RT2501/RT2573 Wireless Adapter.
    Jun 14 16:13:10 wishthinkpad.loc kernel: EXT4-fs (sda7): mounted filesystem with ordered data mode. Opts: (null)
    Jun 14 16:13:10 wishthinkpad.loc systemd[1]: Started Recreate Volatile Files and Directories.
    Jun 14 16:13:10 wishthinkpad.loc systemd[1]: Starting Update UTMP about System Reboot/Shutdown...
    Jun 14 16:13:10 wishthinkpad.loc systemd-journal[90]: Allowing system journal files to grow to 948.4M.
    Jun 14 16:13:10 wishthinkpad.loc systemd[1]: Started Trigger Flushing of Journal to Persistent Storage.
    Jun 14 16:13:10 wishthinkpad.loc systemd[1]: Started Update UTMP about System Reboot/Shutdown.
    Jun 14 16:13:10 wishthinkpad.loc systemd[1]: Starting System Initialization.
    Jun 14 16:13:10 wishthinkpad.loc systemd[1]: Reached target System Initialization.
    Jun 14 16:13:10 wishthinkpad.loc systemd[1]: Starting D-Bus System Message Bus Socket.
    Jun 14 16:13:10 wishthinkpad.loc systemd[1]: Listening on D-Bus System Message Bus Socket.
    Jun 14 16:13:10 wishthinkpad.loc systemd[1]: Starting Sockets.
    Jun 14 16:13:10 wishthinkpad.loc systemd[1]: Reached target Sockets.
    Jun 14 16:13:10 wishthinkpad.loc systemd[1]: Starting Daily Cleanup of Temporary Directories.
    Jun 14 16:13:10 wishthinkpad.loc systemd[1]: Started Daily Cleanup of Temporary Directories.
    Jun 14 16:13:10 wishthinkpad.loc systemd[1]: Starting Timers.
    Jun 14 16:13:19 wishthinkpad.loc kernel: phy0 -> rt2x00lib_request_firmware: Info - Loading firmware file 'rt73.bin'.
    Jun 14 16:13:11 wishthinkpad.loc crond[176]: (CRON) INFO (Syslog will be used instead of sendmail.)
    Jun 14 16:13:11 wishthinkpad.loc crond[176]: (CRON) INFO (running with inotify support)
    Jun 14 16:13:13 wishthinkpad.loc sshd[178]: Server listening on 0.0.0.0 port 50505.
    Jun 14 16:13:14 wishthinkpad.loc ntpd[200]: ntpd [email protected] Mon May 6 10:21:04 UTC 2013 (1)
    Jun 14 16:13:14 wishthinkpad.loc ntpd[201]: proto: precision = 4.469 usec
    Jun 14 16:13:14 wishthinkpad.loc ntpd[201]: ntp_io: estimated max descriptors: 1024, initial socket boundary: 16
    Jun 14 16:13:14 wishthinkpad.loc ntpd[201]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
    Jun 14 16:13:14 wishthinkpad.loc ntpd[201]: Listen and drop on 1 v6wildcard :: UDP 123
    Jun 14 16:13:14 wishthinkpad.loc ntpd[201]: Listen normally on 2 lo 127.0.0.1 UDP 123
    Jun 14 16:13:14 wishthinkpad.loc ntpd[201]: Listen normally on 3 wlan0 192.168.0.102 UDP 123
    Jun 14 16:13:14 wishthinkpad.loc ntpd[201]: peers refreshed
    Jun 14 16:13:19 wishthinkpad.loc kernel: phy0 -> rt2x00lib_request_firmware: Info - Firmware detected - version: 1.7.
    Jun 14 16:13:19 wishthinkpad.loc kernel: IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
    Jun 14 16:13:19 wishthinkpad.loc systemd-logind[179]: Watching system buttons on /dev/input/event4 (Power Button)
    Jun 14 16:13:19 wishthinkpad.loc systemd-logind[179]: Watching system buttons on /dev/input/event2 (Lid Switch)
    Jun 14 16:13:19 wishthinkpad.loc systemd-logind[179]: Watching system buttons on /dev/input/event3 (Sleep Button)
    Jun 14 16:13:19 wishthinkpad.loc kernel: wlan0: authenticate with 00:18:39:a0:db:3e
    Jun 14 16:13:19 wishthinkpad.loc kernel: wlan0: send auth to 00:18:39:a0:db:3e (try 1/3)
    Jun 14 16:13:19 wishthinkpad.loc kernel: wlan0: authenticated
    Jun 14 16:13:19 wishthinkpad.loc kernel: rt73usb 1-1.1:1.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
    Jun 14 16:13:19 wishthinkpad.loc kernel: rt73usb 1-1.1:1.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
    Jun 14 16:13:19 wishthinkpad.loc kernel: wlan0: associate with 00:18:39:a0:db:3e (try 1/3)
    Jun 14 16:13:19 wishthinkpad.loc kernel: wlan0: RX AssocResp from 00:18:39:a0:db:3e (capab=0x411 status=0 aid=1)
    Jun 14 16:13:19 wishthinkpad.loc kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
    Jun 14 16:13:19 wishthinkpad.loc shorewall[199]: Starting Shorewall....
    Jun 14 16:13:19 wishthinkpad.loc kernel: wlan0: associated
    Jun 14 16:13:19 wishthinkpad.loc kernel: ACPI: Fatal opcode executed
    Jun 14 16:13:19 wishthinkpad.loc kernel: ACPI: Battery Slot [BAT0] (battery present)
    Jun 14 16:13:19 wishthinkpad.loc kernel: ACPI: Battery Slot [BAT1] (battery absent)
    Jun 14 16:13:19 wishthinkpad.loc kernel: yenta_cardbus 0000:00:02.1: ISA IRQ mask 0x0418, PCI irq 11
    Jun 14 16:13:19 wishthinkpad.loc kernel: yenta_cardbus 0000:00:02.1: Socket status: 30000006
    Jun 14 16:13:19 wishthinkpad.loc kernel: agpgart-intel 0000:00:00.0: Intel 440BX Chipset
    Jun 14 16:13:19 wishthinkpad.loc kernel: agpgart-intel 0000:00:00.0: AGP aperture is 64M @ 0x40000000
    Jun 14 16:13:19 wishthinkpad.loc kernel: shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
    Jun 14 16:13:19 wishthinkpad.loc kernel: pcmcia_socket pcmcia_socket1: cs: IO port probe 0x100-0x3af:
    Jun 14 16:13:19 wishthinkpad.loc kernel: pcmcia_socket pcmcia_socket0: cs: IO port probe 0x100-0x3af:
    Jun 14 16:13:19 wishthinkpad.loc shorewall[199]: Initializing...
    Jun 14 16:13:19 wishthinkpad.loc kernel: excluding 0x130-0x137 0x170-0x177 0x1f0-0x1f7 0x200-0x207 0x220-0x22f 0x370-0x377 0x388-0x38f
    Jun 14 16:13:19 wishthinkpad.loc kernel: excluding
    Jun 14 16:13:19 wishthinkpad.loc kernel: 0x130-0x137 0x170-0x177 0x1f0-0x1f7 0x200-0x207 0x220-0x22f 0x370-0x377 0x388-0x38f 0x3a0-0x3a7
    Jun 14 16:13:19 wishthinkpad.loc kernel: pcmcia_socket pcmcia_socket0: cs: IO port probe 0x3e0-0x4ff:
    Jun 14 16:13:19 wishthinkpad.loc kernel:
    Jun 14 16:13:19 wishthinkpad.loc kernel: pcmcia_socket pcmcia_socket1: cs: IO port probe 0x3e0-0x4ff:
    Jun 14 16:13:19 wishthinkpad.loc kernel: excluding 0x3f0-0x3ff
    Jun 14 16:13:19 wishthinkpad.loc kernel: excluding
    Jun 14 16:13:19 wishthinkpad.loc kernel: 0x3f0-0x3ff 0x4d0-0x4d7
    Jun 14 16:13:19 wishthinkpad.loc kernel: pcmcia_socket pcmcia_socket1: cs: IO port probe 0x820-0x8ff:
    Jun 14 16:13:19 wishthinkpad.loc kernel: clean.
    Jun 14 16:13:19 wishthinkpad.loc kernel: pcmcia_socket pcmcia_socket1: cs: IO port probe 0xc00-0xcf7:
    Jun 14 16:13:19 wishthinkpad.loc kernel: clean.
    Jun 14 16:13:19 wishthinkpad.loc kernel: pcmcia_socket pcmcia_socket1: cs: memory probe 0x0c0000-0x0fffff:
    Jun 14 16:13:19 wishthinkpad.loc kernel: excluding 0xc0000-0xcbfff 0xf0000-0xfffff
    Jun 14 16:13:19 wishthinkpad.loc kernel: pcmcia_socket pcmcia_socket1: cs: memory probe 0xa0000000-0xa0ffffff:
    Jun 14 16:13:19 wishthinkpad.loc kernel:

  • Dwm 5.9 Compilation issues

    Ok guys, I really need your help.
    I am currently with dwm 5.8.2 (everything's fine) and I downloaded 5.9 via ABS.
    I launched a makepkg under ~/dwm. And next, I tried to apply this patch called pertag2. diff: https://github.com/simongmzlj/dwmhacks/ … rtag2.diff
    It succeeded. Used:
    patch -p1 < pertag2.diff
    And I modified my config.h as jokerboy suggested me here: https://bbs.archlinux.org/viewtopic.php … 45#p960545
    I haven't others patches.
    But when I try to compile it, I got many errors messages.
    dwm build options:
    CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/include/X11 -DVERSION="5.9" -DXINERAMA
    LDFLAGS = -s -L/usr/lib -lc -L/usr/lib/X11 -lX11 -L/usr/lib/X11 -lXinerama
    CC = cc
    CC dwm.c
    In file included from dwm.c:293:0:
    config.h:31:16: erreur: ‘tile’ undeclared here (not in a function)
    dwm.c: In function ‘buttonpress’:
    dwm.c:450:9: erreur: request for member ‘name’ in something not a structure or union
    dwm.c:450:9: erreur: request for member ‘name’ in something not a structure or union
    dwm.c:450:4: attention : passing argument 1 of ‘strlen’ from incompatible pointer type [enabled by default]
    /usr/include/string.h:399:15: note: expected ‘const char *’ but argument is of type ‘const struct Layout *’
    dwm.c:450:4: attention : passing argument 1 of ‘textnw’ from incompatible pointer type [enabled by default]
    dwm.c:236:12: note: expected ‘const char *’ but argument is of type ‘const struct Layout *’
    dwm.c: In function ‘createmon’:
    dwm.c:686:29: erreur: request for member ‘mfact’ in something not a structure or union
    dwm.c:686:36: attention : comparaison ordonnée de pointeur avec le zéro entier [-pedantic]
    dwm.c:686:61: erreur: request for member ‘mfact’ in something not a structure or union
    dwm.c:686:48: erreur: non concordance de type dans une expression conditionnelle
    dwm.c:686:16: erreur: incompatible types when assigning to type ‘double’ from type ‘const struct Layout *’
    dwm.c:686:3: attention : statement with no effect [-Wunused-value]
    dwm.c:687:31: erreur: request for member ‘nmaster’ in something not a structure or union
    dwm.c:687:40: attention : comparaison ordonnée de pointeur avec le zéro entier [-pedantic]
    dwm.c:687:46: erreur: ‘nmaster’ undeclared (first use in this function)
    dwm.c:687:46: note: each undeclared identifier is reported only once for each function it appears in
    dwm.c:687:67: erreur: request for member ‘nmaster’ in something not a structure or union
    dwm.c:687:18: attention : assignment makes integer from pointer without a cast [enabled by default]
    dwm.c:688:26: erreur: request for member ‘layout’ in something not a structure or union
    dwm.c: In function ‘drawbar’:
    dwm.c:767:10: erreur: request for member ‘name’ in something not a structure or union
    dwm.c:767:10: erreur: request for member ‘name’ in something not a structure or union
    dwm.c:767:3: attention : passing argument 1 of ‘strlen’ from incompatible pointer type [enabled by default]
    /usr/include/string.h:399:15: note: expected ‘const char *’ but argument is of type ‘const struct Layout *’
    dwm.c:767:3: attention : passing argument 1 of ‘textnw’ from incompatible pointer type [enabled by default]
    dwm.c:236:12: note: expected ‘const char *’ but argument is of type ‘const struct Layout *’
    dwm.c:769:19: erreur: request for member ‘name’ in something not a structure or union
    dwm.c:769:3: attention : passing argument 1 of ‘drawtext’ from incompatible pointer type [enabled by default]
    dwm.c:190:13: note: expected ‘const char *’ but argument is of type ‘const struct Layout *’
    dwm.c: Hors de toute fonction :
    dwm.c:1550:1: attention : ‘setnmaster’ defined but not used [-Wunused-function]
    dwm.c:1539:1: attention : ‘incnmaster’ defined but not used [-Wunused-function]
    dwm.c:1691:1: attention : ‘ntile’ defined but not used [-Wunused-function]
    make: *** [dwm.o] Erreur 1
    Here my config.h:
    /* See LICENSE file for copyright and license details. */
    /* appearance */
    static const char font[] = "-*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*";
    static const char normbordercolor[] = "#cccccc";
    static const char normbgcolor[] = "#cccccc";
    static const char normfgcolor[] = "#000000";
    static const char selbordercolor[] = "#0066ff";
    static const char selbgcolor[] = "#0066ff";
    static const char selfgcolor[] = "#ffffff";
    static const unsigned int borderpx = 1; /* border pixel of windows */
    static const unsigned int snap = 32; /* snap pixel */
    static const Bool showbar = True; /* False means no bar */
    static const Bool topbar = True; /* False means bottom bar */
    static const Rule rules[] = {
    /* class instance title tags mask isfloating monitor */
    { "Gimp", NULL, NULL, 0, True, -1 },
    { "Firefox", NULL, NULL, 1 << 8, False, -1 },
    /* layout(s) */
    static const int nmaster = 1; /* clients in the master area */
    static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
    static const Bool resizehints = True; /* True means respect size hints in tiled resizals */
    static const Layout layouts[] = {
    /* symbol arrange function */
    { "[]=", tile }, /* first entry is default */
    { "><>", NULL }, /* no layout function means floating behavior */
    { "[M]", monocle },
    { "[N]", ntile },
    /* tagging */
    static const Tag tags[] = {
    /* name layout mfact nmaster */
    { "1", &layouts[0], -1, -1 },
    { "2", &layouts[1], -1, -1 },
    { "3", &layouts[2], -1, -1 },
    { "4", &layouts[3], 0.40, -1 },
    { "5", &layouts[0], -1, -1 },
    { "6", &layouts[0], -1, -1 },
    { "7", &layouts[0], -1, -1 },
    { "8", &layouts[0], -1, -1 },
    { "9", &layouts[0], -1, -1 },
    /* key definitions */
    #define MODKEY Mod1Mask
    #define TAGKEYS(KEY,TAG) \
    { MODKEY, KEY, view, {.ui = 1 << TAG} }, \
    { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
    { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
    { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
    /* helper for spawning shell commands in the pre dwm-5.0 fashion */
    #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
    /* commands */
    static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
    static const char *termcmd[] = { "uxterm", NULL };
    static Key keys[] = {
    /* modifier key function argument */
    { MODKEY, XK_p, spawn, {.v = dmenucmd } },
    { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
    { MODKEY, XK_b, togglebar, {0} },
    { MODKEY, XK_j, focusstack, {.i = +1 } },
    { MODKEY, XK_k, focusstack, {.i = -1 } },
    { MODKEY, XK_a, incnmaster, {.i = +1 } },
    { MODKEY, XK_z, incnmaster, {.i = -1 } },
    { MODKEY, XK_h, setmfact, {.f = -0.05} },
    { MODKEY, XK_l, setmfact, {.f = +0.05} },
    { MODKEY, XK_Return, zoom, {0} },
    { MODKEY, XK_Tab, view, {0} },
    { MODKEY|ShiftMask, XK_c, killclient, {0} },
    { MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
    { MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
    { MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
    { MODKEY, XK_n, setlayout, {.v = &layouts[3]} },
    { MODKEY, XK_space, setlayout, {0} },
    { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
    { MODKEY, XK_0, view, {.ui = ~0 } },
    { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
    { MODKEY, XK_comma, focusmon, {.i = -1 } },
    { MODKEY, XK_period, focusmon, {.i = +1 } },
    { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
    { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
    TAGKEYS( XK_1, 0)
    TAGKEYS( XK_2, 1)
    TAGKEYS( XK_3, 2)
    TAGKEYS( XK_4, 3)
    TAGKEYS( XK_5, 4)
    TAGKEYS( XK_6, 5)
    TAGKEYS( XK_7, 6)
    TAGKEYS( XK_8, 7)
    TAGKEYS( XK_9, 8)
    { MODKEY|ShiftMask, XK_q, quit, {0} },
    /* button definitions */
    /* click can be ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
    static Button buttons[] = {
    /* click event mask button function argument */
    { ClkLtSymbol, 0, Button1, setlayout, {0} },
    { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
    { ClkWinTitle, 0, Button2, zoom, {0} },
    { ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
    { ClkClientWin, MODKEY, Button1, movemouse, {0} },
    { ClkClientWin, MODKEY, Button2, togglefloating, {0} },
    { ClkClientWin, MODKEY, Button3, resizemouse, {0} },
    { ClkTagBar, 0, Button1, view, {0} },
    { ClkTagBar, 0, Button3, toggleview, {0} },
    { ClkTagBar, MODKEY, Button1, tag, {0} },
    { ClkTagBar, MODKEY, Button3, toggletag, {0} },
    dwm.c
    /* See LICENSE file for copyright and license details.
    * dynamic window manager is designed like any other X client as well. It is
    * driven through handling X events. In contrast to other X clients, a window
    * manager selects for SubstructureRedirectMask on the root window, to receive
    * events about window (dis-)appearance. Only one X connection at a time is
    * allowed to select for this event mask.
    * The event handlers of dwm are organized in an array which is accessed
    * whenever a new event has been fetched. This allows event dispatching
    * in O(1) time.
    * Each child of the root window is called a client, except windows which have
    * set the override_redirect flag. Clients are organized in a linked client
    * list on each monitor, the focus history is remembered through a stack list
    * on each monitor. Each client contains a bit array to indicate the tags of a
    * client.
    * Keys and tagging rules are organized as arrays and defined in config.h.
    * To understand everything else, start reading main().
    #include <errno.h>
    #include <locale.h>
    #include <stdarg.h>
    #include <signal.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <unistd.h>
    #include <sys/types.h>
    #include <sys/wait.h>
    #include <X11/cursorfont.h>
    #include <X11/keysym.h>
    #include <X11/Xatom.h>
    #include <X11/Xlib.h>
    #include <X11/Xproto.h>
    #include <X11/Xutil.h>
    #ifdef XINERAMA
    #include <X11/extensions/Xinerama.h>
    #endif /* XINERAMA */
    /* macros */
    #define BUTTONMASK (ButtonPressMask|ButtonReleaseMask)
    #define CLEANMASK(mask) (mask & ~(numlockmask|LockMask) & (ShiftMask|ControlMask|Mod1Mask|Mod2Mask|Mod3Mask|Mod4Mask|Mod5Mask))
    #define INRECT(X,Y,RX,RY,RW,RH) ((X) >= (RX) && (X) < (RX) + (RW) && (Y) >= (RY) && (Y) < (RY) + (RH))
    #define ISVISIBLE(C) ((C->tags & C->mon->tagset[C->mon->seltags]))
    #define LENGTH(X) (sizeof X / sizeof X[0])
    #define MAX(A, B) ((A) > (B) ? (A) : (B))
    #define MIN(A, B) ((A) < (B) ? (A) : (B))
    #define MOUSEMASK (BUTTONMASK|PointerMotionMask)
    #define WIDTH(X) ((X)->w + 2 * (X)->bw)
    #define HEIGHT(X) ((X)->h + 2 * (X)->bw)
    #define TAGMASK ((1 << LENGTH(tags)) - 1)
    #define TEXTW(X) (textnw(X, strlen(X)) + dc.font.height)
    /* enums */
    enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */
    enum { ColBorder, ColFG, ColBG, ColLast }; /* color */
    enum { NetSupported, NetWMName, NetWMState,
    NetWMFullscreen, NetActiveWindow, NetLast }; /* EWMH atoms */
    enum { WMProtocols, WMDelete, WMState, WMTakeFocus, WMLast }; /* default atoms */
    enum { ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle,
    ClkClientWin, ClkRootWin, ClkLast }; /* clicks */
    typedef union {
    int i;
    unsigned int ui;
    float f;
    const void *v;
    } Arg;
    typedef struct {
    unsigned int click;
    unsigned int mask;
    unsigned int button;
    void (*func)(const Arg *arg);
    const Arg arg;
    } Button;
    typedef struct Monitor Monitor;
    typedef struct Client Client;
    struct Client {
    char name[256];
    float mina, maxa;
    int x, y, w, h;
    int oldx, oldy, oldw, oldh;
    int basew, baseh, incw, inch, maxw, maxh, minw, minh;
    int bw, oldbw;
    unsigned int tags;
    Bool isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen;
    Client *next;
    Client *snext;
    Monitor *mon;
    Window win;
    typedef struct {
    int x, y, w, h;
    unsigned long norm[ColLast];
    unsigned long sel[ColLast];
    Drawable drawable;
    GC gc;
    struct {
    int ascent;
    int descent;
    int height;
    XFontSet set;
    XFontStruct *xfont;
    } font;
    } DC; /* draw context */
    typedef struct {
    unsigned int mod;
    KeySym keysym;
    void (*func)(const Arg *);
    const Arg arg;
    } Key;
    typedef struct {
    const char *symbol;
    void (*arrange)(Monitor *);
    } Layout;
    struct Monitor {
    char ltsymbol[16];
    int num;
    int by; /* bar geometry */
    int mx, my, mw, mh; /* screen size */
    int wx, wy, ww, wh; /* window area */
    unsigned int seltags;
    unsigned int sellt;
    unsigned int tagset[2];
    Bool showbar;
    Bool topbar;
    Client *clients;
    Client *sel;
    Client *stack;
    Monitor *next;
    Window barwin;
    const Layout *lt[2];
    int curtag;
    int prevtag;
    const Layout **lts;
    double *mfacts;
    int *nmasters;
    typedef struct {
    const char *name;
    const Layout *layout;
    float mfact;
    int nmaster;
    } Tag;
    typedef struct {
    const char *class;
    const char *instance;
    const char *title;
    unsigned int tags;
    Bool isfloating;
    int monitor;
    } Rule;
    /* function declarations */
    static void applyrules(Client *c);
    static Bool applysizehints(Client *c, int *x, int *y, int *w, int *h, Bool interact);
    static void arrange(Monitor *m);
    static void arrangemon(Monitor *m);
    static void attach(Client *c);
    static void attachstack(Client *c);
    static void buttonpress(XEvent *e);
    static void checkotherwm(void);
    static void cleanup(void);
    static void cleanupmon(Monitor *mon);
    static void clearurgent(Client *c);
    static void clientmessage(XEvent *e);
    static void configure(Client *c);
    static void configurenotify(XEvent *e);
    static void configurerequest(XEvent *e);
    static Monitor *createmon(void);
    static void destroynotify(XEvent *e);
    static void detach(Client *c);
    static void detachstack(Client *c);
    static void die(const char *errstr, ...);
    static Monitor *dirtomon(int dir);
    static void drawbar(Monitor *m);
    static void drawbars(void);
    static void drawsquare(Bool filled, Bool empty, Bool invert, unsigned long col[ColLast]);
    static void drawtext(const char *text, unsigned long col[ColLast], Bool invert);
    static void enternotify(XEvent *e);
    static void expose(XEvent *e);
    static void focus(Client *c);
    static void focusin(XEvent *e);
    static void focusmon(const Arg *arg);
    static void focusstack(const Arg *arg);
    static unsigned long getcolor(const char *colstr);
    static Bool getrootptr(int *x, int *y);
    static long getstate(Window w);
    static Bool gettextprop(Window w, Atom atom, char *text, unsigned int size);
    static void grabbuttons(Client *c, Bool focused);
    static void grabkeys(void);
    static void initfont(const char *fontstr);
    static void keypress(XEvent *e);
    static void killclient(const Arg *arg);
    static void manage(Window w, XWindowAttributes *wa);
    static void mappingnotify(XEvent *e);
    static void maprequest(XEvent *e);
    static void monocle(Monitor *m);
    static void movemouse(const Arg *arg);
    static Client *nexttiled(Client *c);
    static void pop(Client *);
    static void propertynotify(XEvent *e);
    static Monitor *ptrtomon(int x, int y);
    static void quit(const Arg *arg);
    static void resize(Client *c, int x, int y, int w, int h, Bool interact);
    static void resizeclient(Client *c, int x, int y, int w, int h);
    static void resizemouse(const Arg *arg);
    static void restack(Monitor *m);
    static void run(void);
    static void scan(void);
    static Bool sendevent(Client *c, Atom proto);
    static void sendmon(Client *c, Monitor *m);
    static void setclientstate(Client *c, long state);
    static void setfocus(Client *c);
    static void setlayout(const Arg *arg);
    static void setmfact(const Arg *arg);
    static void setnmaster(const Arg *arg);
    static void incnmaster(const Arg *arg);
    static void setup(void);
    static void showhide(Client *c);
    static void sigchld(int unused);
    static void spawn(const Arg *arg);
    static void tag(const Arg *arg);
    static void tagmon(const Arg *arg);
    static int textnw(const char *text, unsigned int len);
    static void ntile(Monitor *);
    static void togglebar(const Arg *arg);
    static void togglefloating(const Arg *arg);
    static void toggletag(const Arg *arg);
    static void toggleview(const Arg *arg);
    static void unfocus(Client *c, Bool setfocus);
    static void unmanage(Client *c, Bool destroyed);
    static void unmapnotify(XEvent *e);
    static Bool updategeom(void);
    static void updatebarpos(Monitor *m);
    static void updatebars(void);
    static void updatenumlockmask(void);
    static void updatesizehints(Client *c);
    static void updatestatus(void);
    static void updatetitle(Client *c);
    static void updatewmhints(Client *c);
    static void view(const Arg *arg);
    static Client *wintoclient(Window w);
    static Monitor *wintomon(Window w);
    static int xerror(Display *dpy, XErrorEvent *ee);
    static int xerrordummy(Display *dpy, XErrorEvent *ee);
    static int xerrorstart(Display *dpy, XErrorEvent *ee);
    static void zoom(const Arg *arg);
    /* variables */
    static const char broken[] = "broken";
    static char stext[256];
    static int screen;
    static int sw, sh; /* X display screen geometry width, height */
    static int bh, blw = 0; /* bar geometry */
    static int (*xerrorxlib)(Display *, XErrorEvent *);
    static unsigned int numlockmask = 0;
    static void (*handler[LASTEvent]) (XEvent *) = {
    [ButtonPress] = buttonpress,
    [ClientMessage] = clientmessage,
    [ConfigureRequest] = configurerequest,
    [ConfigureNotify] = configurenotify,
    [DestroyNotify] = destroynotify,
    [EnterNotify] = enternotify,
    [Expose] = expose,
    [FocusIn] = focusin,
    [KeyPress] = keypress,
    [MappingNotify] = mappingnotify,
    [MapRequest] = maprequest,
    [PropertyNotify] = propertynotify,
    [UnmapNotify] = unmapnotify
    static Atom wmatom[WMLast], netatom[NetLast];
    static Bool running = True;
    static Cursor cursor[CurLast];
    static Display *dpy;
    static DC dc;
    static Monitor *mons = NULL, *selmon = NULL;
    static Window root;
    /* configuration, allows nested code to access above variables */
    #include "config.h"
    /* compile-time check if all tags fit into an unsigned int bit array. */
    struct NumTags { char limitexceeded[LENGTH(tags) > 31 ? -1 : 1]; };
    /* function implementations */
    void
    applyrules(Client *c) {
    const char *class, *instance;
    unsigned int i;
    const Rule *r;
    Monitor *m;
    XClassHint ch = { 0 };
    /* rule matching */
    c->isfloating = c->tags = 0;
    if(XGetClassHint(dpy, c->win, &ch)) {
    class = ch.res_class ? ch.res_class : broken;
    instance = ch.res_name ? ch.res_name : broken;
    for(i = 0; i < LENGTH(rules); i++) {
    r = &rules[i];
    if((!r->title || strstr(c->name, r->title))
    && (!r->class || strstr(class, r->class))
    && (!r->instance || strstr(instance, r->instance)))
    c->isfloating = r->isfloating;
    c->tags |= r->tags;
    for(m = mons; m && m->num != r->monitor; m = m->next);
    if(m)
    c->mon = m;
    if(ch.res_class)
    XFree(ch.res_class);
    if(ch.res_name)
    XFree(ch.res_name);
    c->tags = c->tags & TAGMASK ? c->tags & TAGMASK : c->mon->tagset[c->mon->seltags];
    Bool
    applysizehints(Client *c, int *x, int *y, int *w, int *h, Bool interact) {
    Bool baseismin;
    Monitor *m = c->mon;
    /* set minimum possible */
    *w = MAX(1, *w);
    *h = MAX(1, *h);
    if(interact) {
    if(*x > sw)
    *x = sw - WIDTH(c);
    if(*y > sh)
    *y = sh - HEIGHT(c);
    if(*x + *w + 2 * c->bw < 0)
    *x = 0;
    if(*y + *h + 2 * c->bw < 0)
    *y = 0;
    else {
    if(*x > m->mx + m->mw)
    *x = m->mx + m->mw - WIDTH(c);
    if(*y > m->my + m->mh)
    *y = m->my + m->mh - HEIGHT(c);
    if(*x + *w + 2 * c->bw < m->mx)
    *x = m->mx;
    if(*y + *h + 2 * c->bw < m->my)
    *y = m->my;
    if(*h < bh)
    *h = bh;
    if(*w < bh)
    *w = bh;
    if(resizehints || c->isfloating) {
    /* see last two sentences in ICCCM 4.1.2.3 */
    baseismin = c->basew == c->minw && c->baseh == c->minh;
    if(!baseismin) { /* temporarily remove base dimensions */
    *w -= c->basew;
    *h -= c->baseh;
    /* adjust for aspect limits */
    if(c->mina > 0 && c->maxa > 0) {
    if(c->maxa < (float)*w / *h)
    *w = *h * c->maxa + 0.5;
    else if(c->mina < (float)*h / *w)
    *h = *w * c->mina + 0.5;
    if(baseismin) { /* increment calculation requires this */
    *w -= c->basew;
    *h -= c->baseh;
    /* adjust for increment value */
    if(c->incw)
    *w -= *w % c->incw;
    if(c->inch)
    *h -= *h % c->inch;
    /* restore base dimensions */
    *w = MAX(*w + c->basew, c->minw);
    *h = MAX(*h + c->baseh, c->minh);
    if(c->maxw)
    *w = MIN(*w, c->maxw);
    if(c->maxh)
    *h = MIN(*h, c->maxh);
    return *x != c->x || *y != c->y || *w != c->w || *h != c->h;
    void
    arrange(Monitor *m) {
    if(m)
    showhide(m->stack);
    else for(m = mons; m; m = m->next)
    showhide(m->stack);
    focus(NULL);
    if(m)
    arrangemon(m);
    else for(m = mons; m; m = m->next)
    arrangemon(m);
    void
    arrangemon(Monitor *m) {
    strncpy(m->ltsymbol, m->lt[m->sellt]->symbol, sizeof m->ltsymbol);
    if(m->lt[m->sellt]->arrange)
    m->lt[m->sellt]->arrange(m);
    restack(m);
    void
    attach(Client *c) {
    c->next = c->mon->clients;
    c->mon->clients = c;
    void
    attachstack(Client *c) {
    c->snext = c->mon->stack;
    c->mon->stack = c;
    void
    buttonpress(XEvent *e) {
    unsigned int i, x, click;
    Arg arg = {0};
    Client *c;
    Monitor *m;
    XButtonPressedEvent *ev = &e->xbutton;
    click = ClkRootWin;
    /* focus monitor if necessary */
    if((m = wintomon(ev->window)) && m != selmon) {
    unfocus(selmon->sel, True);
    selmon = m;
    focus(NULL);
    if(ev->window == selmon->barwin) {
    i = x = 0;
    do {
    x += TEXTW(tags[i].name);
    } while(ev->x >= x && ++i < LENGTH(tags));
    if(i < LENGTH(tags)) {
    click = ClkTagBar;
    arg.ui = 1 << i;
    else if(ev->x < x + blw)
    click = ClkLtSymbol;
    else if(ev->x > selmon->ww - TEXTW(stext))
    click = ClkStatusText;
    else
    click = ClkWinTitle;
    else if((c = wintoclient(ev->window))) {
    focus(c);
    click = ClkClientWin;
    for(i = 0; i < LENGTH(buttons); i++)
    if(click == buttons[i].click && buttons[i].func && buttons[i].button == ev->button
    && CLEANMASK(buttons[i].mask) == CLEANMASK(ev->state))
    buttons[i].func(click == ClkTagBar && buttons[i].arg.i == 0 ? &arg : &buttons[i].arg);
    void
    checkotherwm(void) {
    xerrorxlib = XSetErrorHandler(xerrorstart);
    /* this causes an error if some other window manager is running */
    XSelectInput(dpy, DefaultRootWindow(dpy), SubstructureRedirectMask);
    XSync(dpy, False);
    XSetErrorHandler(xerror);
    XSync(dpy, False);
    void
    cleanup(void) {
    Arg a = {.ui = ~0};
    Layout foo = { "", NULL };
    Monitor *m;
    view(&a);
    selmon->lt[selmon->sellt] = &foo;
    for(m = mons; m; m = m->next)
    while(m->stack)
    unmanage(m->stack, False);
    if(dc.font.set)
    XFreeFontSet(dpy, dc.font.set);
    else
    XFreeFont(dpy, dc.font.xfont);
    XUngrabKey(dpy, AnyKey, AnyModifier, root);
    XFreePixmap(dpy, dc.drawable);
    XFreeGC(dpy, dc.gc);
    XFreeCursor(dpy, cursor[CurNormal]);
    XFreeCursor(dpy, cursor[CurResize]);
    XFreeCursor(dpy, cursor[CurMove]);
    while(mons)
    cleanupmon(mons);
    XSync(dpy, False);
    XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime);
    void
    cleanupmon(Monitor *mon) {
    Monitor *m;
    if(mon == mons)
    mons = mons->next;
    else {
    for(m = mons; m && m->next != mon; m = m->next);
    m->next = mon->next;
    XUnmapWindow(dpy, mon->barwin);
    XDestroyWindow(dpy, mon->barwin);
    free(mon->mfacts);
    free(mon->nmasters);
    free(mon->lts);
    free(mon);
    void
    clearurgent(Client *c) {
    XWMHints *wmh;
    c->isurgent = False;
    if(!(wmh = XGetWMHints(dpy, c->win)))
    return;
    wmh->flags &= ~XUrgencyHint;
    XSetWMHints(dpy, c->win, wmh);
    XFree(wmh);
    void
    clientmessage(XEvent *e) {
    XClientMessageEvent *cme = &e->xclient;
    Client *c = wintoclient(cme->window);
    if(!c)
    return;
    if(cme->message_type == netatom[NetWMState] && cme->data.l[1] == netatom[NetWMFullscreen]) {
    if(cme->data.l[0] && !c->isfullscreen) {
    XChangeProperty(dpy, cme->window, netatom[NetWMState], XA_ATOM, 32,
    PropModeReplace, (unsigned char*)&netatom[NetWMFullscreen], 1);
    c->isfullscreen = True;
    c->oldstate = c->isfloating;
    c->oldbw = c->bw;
    c->bw = 0;
    c->isfloating = True;
    resizeclient(c, c->mon->mx, c->mon->my, c->mon->mw, c->mon->mh);
    XRaiseWindow(dpy, c->win);
    else {
    XChangeProperty(dpy, cme->window, netatom[NetWMState], XA_ATOM, 32,
    PropModeReplace, (unsigned char*)0, 0);
    c->isfullscreen = False;
    c->isfloating = c->oldstate;
    c->bw = c->oldbw;
    c->x = c->oldx;
    c->y = c->oldy;
    c->w = c->oldw;
    c->h = c->oldh;
    resizeclient(c, c->x, c->y, c->w, c->h);
    arrange(c->mon);
    else if(cme->message_type == netatom[NetActiveWindow]) {
    if(!ISVISIBLE(c)) {
    c->mon->seltags ^= 1;
    c->mon->tagset[c->mon->seltags] = c->tags;
    pop(c);
    void
    configure(Client *c) {
    XConfigureEvent ce;
    ce.type = ConfigureNotify;
    ce.display = dpy;
    ce.event = c->win;
    ce.window = c->win;
    ce.x = c->x;
    ce.y = c->y;
    ce.width = c->w;
    ce.height = c->h;
    ce.border_width = c->bw;
    ce.above = None;
    ce.override_redirect = False;
    XSendEvent(dpy, c->win, False, StructureNotifyMask, (XEvent *)&ce);
    void
    configurenotify(XEvent *e) {
    Monitor *m;
    XConfigureEvent *ev = &e->xconfigure;
    Bool dirty;
    if(ev->window == root) {
    dirty = (sw != ev->width);
    sw = ev->width;
    sh = ev->height;
    if(updategeom() || dirty) {
    if(dc.drawable != 0)
    XFreePixmap(dpy, dc.drawable);
    dc.drawable = XCreatePixmap(dpy, root, sw, bh, DefaultDepth(dpy, screen));
    updatebars();
    for(m = mons; m; m = m->next)
    XMoveResizeWindow(dpy, m->barwin, m->wx, m->by, m->ww, bh);
    arrange(NULL);
    void
    configurerequest(XEvent *e) {
    Client *c;
    Monitor *m;
    XConfigureRequestEvent *ev = &e->xconfigurerequest;
    XWindowChanges wc;
    if((c = wintoclient(ev->window))) {
    if(ev->value_mask & CWBorderWidth)
    c->bw = ev->border_width;
    else if(c->isfloating || !selmon->lt[selmon->sellt]->arrange) {
    m = c->mon;
    if(ev->value_mask & CWX)
    c->x = m->mx + ev->x;
    if(ev->value_mask & CWY)
    c->y = m->my + ev->y;
    if(ev->value_mask & CWWidth)
    c->w = ev->width;
    if(ev->value_mask & CWHeight)
    c->h = ev->height;
    if((c->x + c->w) > m->mx + m->mw && c->isfloating)
    c->x = m->mx + (m->mw / 2 - c->w / 2); /* center in x direction */
    if((c->y + c->h) > m->my + m->mh && c->isfloating)
    c->y = m->my + (m->mh / 2 - c->h / 2); /* center in y direction */
    if((ev->value_mask & (CWX|CWY)) && !(ev->value_mask & (CWWidth|CWHeight)))
    configure(c);
    if(ISVISIBLE(c))
    XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h);
    else
    configure(c);
    else {
    wc.x = ev->x;
    wc.y = ev->y;
    wc.width = ev->width;
    wc.height = ev->height;
    wc.border_width = ev->border_width;
    wc.sibling = ev->above;
    wc.stack_mode = ev->detail;
    XConfigureWindow(dpy, ev->window, ev->value_mask, &wc);
    XSync(dpy, False);
    /* TODO Check how many times createmon is called */
    Monitor *
    createmon(void) {
    Monitor *m;
    int i, numtags = LENGTH(tags) + 1;
    if(!(m = (Monitor *)calloc(1, sizeof(Monitor))))
    die("fatal: could not malloc() %u bytes\n", sizeof(Monitor));
    if(!(m->mfacts = calloc(sizeof(double), numtags)))
    die("fatal: could not malloc() %u bytes\n", sizeof(double) * numtags);
    if(!(m->nmasters = calloc(sizeof(int), numtags)))
    die("fatal: could not malloc() %u bytes\n", sizeof(int) * numtags);
    if(!(m->lts = calloc(sizeof(Layout *), numtags)))
    die("fatal: could not malloc() %u bytes\n", sizeof(Layout *) * numtags);
    m->tagset[0] = m->tagset[1] = 1;
    m->showbar = showbar;
    m->topbar = topbar;
    m->curtag = m->prevtag = 1;
    for(i = 1; i < numtags; i++) {
    m->mfacts[i] = tags[i - 1].mfact < 0 ? mfact : tags[i - 1].mfact;
    m->nmasters[i] = tags[i - 1].nmaster < 0 ? nmaster : tags[i - 1].nmaster;
    m->lts[i] = tags[i - 1].layout;
    m->lt[0] = m->lts[m->curtag];
    m->lt[1] = &layouts[1 % LENGTH(layouts)];
    strncpy(m->ltsymbol, m->lt[0]->symbol, sizeof m->ltsymbol);
    return m;
    void
    destroynotify(XEvent *e) {
    Client *c;
    XDestroyWindowEvent *ev = &e->xdestroywindow;
    if((c = wintoclient(ev->window)))
    unmanage(c, True);
    void
    detach(Client *c) {
    Client **tc;
    for(tc = &c->mon->clients; *tc && *tc != c; tc = &(*tc)->next);
    *tc = c->next;
    void
    detachstack(Client *c) {
    Client **tc, *t;
    for(tc = &c->mon->stack; *tc && *tc != c; tc = &(*tc)->snext);
    *tc = c->snext;
    if(c == c->mon->sel) {
    for(t = c->mon->stack; t && !ISVISIBLE(t); t = t->snext);
    c->mon->sel = t;
    void
    die(const char *errstr, ...) {
    va_list ap;
    va_start(ap, errstr);
    vfprintf(stderr, errstr, ap);
    va_end(ap);
    exit(EXIT_FAILURE);
    Monitor *
    dirtomon(int dir) {
    Monitor *m = NULL;
    if(dir > 0) {
    if(!(m = selmon->next))
    m = mons;
    else {
    if(selmon == mons)
    for(m = mons; m->next; m = m->next);
    else
    for(m = mons; m->next != selmon; m = m->next);
    return m;
    void
    drawbar(Monitor *m) {
    int x;
    unsigned int i, occ = 0, urg = 0;
    unsigned long *col;
    Client *c;
    for(c = m->clients; c; c = c->next) {
    occ |= c->tags;
    if(c->isurgent)
    urg |= c->tags;
    dc.x = 0;
    for(i = 0; i < LENGTH(tags); i++) {
    dc.w = TEXTW(tags[i].name);
    col = m->tagset[m->seltags] & 1 << i ? dc.sel : dc.norm;
    drawtext(tags[i].name, col, urg & 1 << i);
    drawsquare(m == selmon && selmon->sel && selmon->sel->tags & 1 << i,
    occ & 1 << i, urg & 1 << i, col);
    dc.x += dc.w;
    dc.w = blw = TEXTW(m->ltsymbol);
    drawtext(m->ltsymbol, dc.norm, False);
    dc.x += dc.w;
    x = dc.x;
    if(m == selmon) { /* status is only drawn on selected monitor */
    dc.w = TEXTW(stext);
    dc.x = m->ww - dc.w;
    if(dc.x < x) {
    dc.x = x;
    dc.w = m->ww - x;
    drawtext(stext, dc.norm, False);
    else
    dc.x = m->ww;
    if((dc.w = dc.x - x) > bh) {
    dc.x = x;
    if(m->sel) {
    col = m == selmon ? dc.sel : dc.norm;
    drawtext(m->sel->name, col, False);
    drawsquare(m->sel->isfixed, m->sel->isfloating, False, col);
    else
    drawtext(NULL, dc.norm, False);
    XCopyArea(dpy, dc.drawable, m->barwin, dc.gc, 0, 0, m->ww, bh, 0, 0);
    XSync(dpy, False);
    void
    drawbars(void) {
    Monitor *m;
    for(m = mons; m; m = m->next)
    drawbar(m);
    void
    drawsquare(Bool filled, Bool empty, Bool invert, unsigned long col[ColLast]) {
    int x;
    XSetForeground(dpy, dc.gc, col[invert ? ColBG : ColFG]);
    x = (dc.font.ascent + dc.font.descent + 2) / 4;
    if(filled)
    XFillRectangle(dpy, dc.drawable, dc.gc, dc.x+1, dc.y+1, x+1, x+1);
    else if(empty)
    XDrawRectangle(dpy, dc.drawable, dc.gc, dc.x+1, dc.y+1, x, x);
    void
    drawtext(const char *text, unsigned long col[ColLast], Bool invert) {
    char buf[256];
    int i, x, y, h, len, olen;
    XSetForeground(dpy, dc.gc, col[invert ? ColFG : ColBG]);
    XFillRectangle(dpy, dc.drawable, dc.gc, dc.x, dc.y, dc.w, dc.h);
    if(!text)
    return;
    olen = strlen(text);
    h = dc.font.ascent + dc.font.descent;
    y = dc.y + (dc.h / 2) - (h / 2) + dc.font.ascent;
    x = dc.x + (h / 2);
    /* shorten text if necessary */
    for(len = MIN(olen, sizeof buf); len && textnw(text, len) > dc.w - h; len--);
    if(!len)
    return;
    memcpy(buf, text, len);
    if(len < olen)
    for(i = len; i && i > len - 3; buf[--i] = '.');
    XSetForeground(dpy, dc.gc, col[invert ? ColBG : ColFG]);
    if(dc.font.set)
    XmbDrawString(dpy, dc.drawable, dc.font.set, dc.gc, x, y, buf, len);
    else
    XDrawString(dpy, dc.drawable, dc.gc, x, y, buf, len);
    void
    enternotify(XEvent *e) {
    Client *c;
    Monitor *m;
    XCrossingEvent *ev = &e->xcrossing;
    if((ev->mode != NotifyNormal || ev->detail == NotifyInferior) && ev->window != root)
    return;
    c = wintoclient(ev->window);
    m = c ? c->mon : wintomon(ev->window);
    if(m != selmon) {
    unfocus(selmon->sel, True);
    selmon = m;
    else if(!c || c == selmon->sel)
    return;
    focus(c);
    void
    expose(XEvent *e) {
    Monitor *m;
    XExposeEvent *ev = &e->xexpose;
    if(ev->count == 0 && (m = wintomon(ev->window)))
    drawbar(m);
    void
    focus(Client *c) {
    if(!c || !ISVISIBLE(c))
    for(c = selmon->stack; c && !ISVISIBLE(c); c = c->snext);
    /* was if(selmon->sel) */
    if(selmon->sel && selmon->sel != c)
    unfocus(selmon->sel, False);
    if(c) {
    if(c->mon != selmon)
    selmon = c->mon;
    if(c->isurgent)
    clearurgent(c);
    detachstack(c);
    attachstack(c);
    grabbuttons(c, True);
    XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]);
    setfocus(c);
    else
    XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
    selmon->sel = c;
    drawbars();
    void
    focusin(XEvent *e) { /* there are some broken focus acquiring clients */
    XFocusChangeEvent *ev = &e->xfocus;
    if(selmon->sel && ev->window != selmon->sel->win)
    setfocus(selmon->sel);
    void
    focusmon(const Arg *arg) {
    Monitor *m;
    if(!mons->next)
    return;
    if((m = dirtomon(arg->i)) == selmon)
    return;
    unfocus(selmon->sel, True);
    selmon = m;
    focus(NULL);
    void
    focusstack(const Arg *arg) {
    Client *c = NULL, *i;
    if(!selmon->sel)
    return;
    if(arg->i > 0) {
    for(c = selmon->sel->next; c && !ISVISIBLE(c); c = c->next);
    if(!c)
    for(c = selmon->clients; c && !ISVISIBLE(c); c = c->next);
    else {
    for(i = selmon->clients; i != selmon->sel; i = i->next)
    if(ISVISIBLE(i))
    c = i;
    if(!c)
    for(; i; i = i->next)
    if(ISVISIBLE(i))
    c = i;
    if(c) {
    focus(c);
    restack(selmon);
    unsigned long
    getcolor(const char *colstr) {
    Colormap cmap = DefaultColormap(dpy, screen);
    XColor color;
    if(!XAllocNamedColor(dpy, cmap, colstr, &color, &color))
    die("error, cannot allocate color '%s'\n", colstr);
    return color.pixel;
    Bool
    getrootptr(int *x, int *y) {
    int di;
    unsigned int dui;
    Window dummy;
    return XQueryPointer(dpy, root, &dummy, &dummy, x, y, &di, &di, &dui);
    long
    getstate(Window w) {
    int format;
    long result = -1;
    unsigned char *p = NULL;
    unsigned long n, extra;
    Atom real;
    if(XGetWindowProperty(dpy, w, wmatom[WMState], 0L, 2L, False, wmatom[WMState],
    &real, &format, &n, &extra, (unsigned char **)&p) != Success)
    return -1;
    if(n != 0)
    result = *p;
    XFree(p);
    return result;
    Bool
    gettextprop(Window w, Atom atom, char *text, unsigned int size) {
    char **list = NULL;
    int n;
    XTextProperty name;
    if(!text || size == 0)
    return False;
    text[0] = '\0';
    XGetTextProperty(dpy, w, &name, atom);
    if(!name.nitems)
    return False;
    if(name.encoding == XA_STRING)
    strncpy(text, (char *)name.value, size - 1);
    else {
    if(XmbTextPropertyToTextList(dpy, &name, &list, &n) >= Success && n > 0 && *list) {
    strncpy(text, *list, size - 1);
    XFreeStringList(list);
    text[size - 1] = '\0';
    XFree(name.value);
    return True;
    void
    grabbuttons(Client *c, Bool focused) {
    updatenumlockmask();
    unsigned int i, j;
    unsigned int modifiers[] = { 0, LockMask, numlockmask, numlockmask|LockMask };
    XUngrabButton(dpy, AnyButton, AnyModifier, c->win);
    if(focused) {
    for(i = 0; i < LENGTH(buttons); i++)
    if(buttons[i].click == ClkClientWin)
    for(j = 0; j < LENGTH(modifiers); j++)
    XGrabButton(dpy, buttons[i].button,
    buttons[i].mask | modifiers[j],
    c->win, False, BUTTONMASK,
    GrabModeAsync, GrabModeSync, None, None);
    else
    XGrabButton(dpy, AnyButton, AnyModifier, c->win, False,
    BUTTONMASK, GrabModeAsync, GrabModeSync, None, None);
    void
    grabkeys(void) {
    updatenumlockmask();
    unsigned int i, j;
    unsigned int modifiers[] = { 0, LockMask, numlockmask, numlockmask|LockMask };
    KeyCode code;
    XUngrabKey(dpy, AnyKey, AnyModifier, root);
    for(i = 0; i < LENGTH(keys); i++) {
    if((code = XKeysymToKeycode(dpy, keys[i].keysym)))
    for(j = 0; j < LENGTH(modifiers); j++)
    XGrabKey(dpy, code, keys[i].mod | modifiers[j], root,
    True, GrabModeAsync, GrabModeAsync);
    void
    initfont(const char *fontstr) {
    char *def, **missing;
    int n;
    missing = NULL;
    dc.font.set = XCreateFontSet(dpy, fontstr, &missing, &n, &def);
    if(missing) {
    while(n--)
    fprintf(stderr, "dwm: missing fontset: %s\n", missing[n]);
    XFreeStringList(missing);
    if(dc.font.set) {
    XFontStruct **xfonts;
    char **font_names;
    dc.font.ascent = dc.font.descent = 0;
    XExtentsOfFontSet(dc.font.set);
    n = XFontsOfFontSet(dc.font.set, &xfonts, &font_names);
    while(n--) {
    dc.font.ascent = MAX(dc.font.ascent, (*xfonts)->ascent);
    dc.font.descent = MAX(dc.font.descent,(*xfonts)->descent);
    xfonts++;
    else {
    if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr))
    && !(dc.font.xfont = XLoadQueryFont(dpy, "fixed")))
    die("error, cannot load font: '%s'\n", fontstr);
    dc.font.ascent = dc.font.xfont->ascent;
    dc.font.descent = dc.font.xfont->descent;
    dc.font.height = dc.font.ascent + dc.font.descent;
    #ifdef XINERAMA
    static Bool
    isuniquegeom(XineramaScreenInfo *unique, size_t n, XineramaScreenInfo *info) {
    while(n--)
    if(unique[n].x_org == info->x_org && unique[n].y_org == info->y_org
    && unique[n].width == info->width && unique[n].height == info->height)
    return False;
    return True;
    #endif /* XINERAMA */
    void
    keypress(XEvent *e) {
    unsigned int i;
    KeySym keysym;
    XKeyEvent *ev;
    ev = &e->xkey;
    keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0);
    for(i = 0; i < LENGTH(keys); i++)
    if(keysym == keys[i].keysym
    && CLEANMASK(keys[i].mod) == CLEANMASK(ev->state)
    && keys[i].func)
    keys[i].func(&(keys[i].arg));
    void
    killclient(const Arg *arg) {
    if(!selmon->sel)
    return;
    if(!sendevent(selmon->sel, wmatom[WMDelete])) {
    XGrabServer(dpy);
    XSetErrorHandler(xerrordummy);
    XSetCloseDownMode(dpy, DestroyAll);
    XKillClient(dpy, selmon->sel->win);
    XSync(dpy, False);
    XSetErrorHandler(xerror);
    XUngrabServer(dpy);
    void
    manage(Window w, XWindowAttributes *wa) {
    Client *c, *t = NULL;
    Window trans = None;
    XWindowChanges wc;
    if(!(c = calloc(1, sizeof(Client))))
    die("fatal: could not malloc() %u bytes\n", sizeof(Client));
    c->win = w;
    updatetitle(c);
    if(XGetTransientForHint(dpy, w, &trans) && (t = wintoclient(trans))) {
    c->mon = t->mon;
    c->tags = t->tags;
    else {
    c->mon = selmon;
    applyrules(c);
    /* geometry */
    c->x = c->oldx = wa->x;
    c->y = c->oldy = wa->y;
    c->w = c->oldw = wa->width;
    c->h = c->oldh = wa->height;
    c->oldbw = wa->border_width;
    if(c->w == c->mon->mw && c->h == c->mon->mh) {
    c->isfloating = True;
    c->x = c->mon->mx;
    c->y = c->mon->my;
    c->bw = 0;
    else {
    if(c->x + WIDTH(c) > c->mon->mx + c->mon->mw)
    c->x = c->mon->mx + c->mon->mw - WIDTH(c);
    if(c->y + HEIGHT(c) > c->mon->my + c->mon->mh)
    c->y = c->mon->my + c->mon->mh - HEIGHT(c);
    c->x = MAX(c->x, c->mon->mx);
    /* only fix client y-offset, if the client center might cover the bar */
    c->y = MAX(c->y, ((c->mon->by == 0) && (c->x + (c->w / 2) >= c->mon->wx)
    && (c->x + (c->w / 2) < c->mon->wx + c->mon->ww)) ? bh : c->mon->my);
    c->bw = borderpx;
    wc.border_width = c->bw;
    XConfigureWindow(dpy, w, CWBorderWidth, &wc);
    XSetWindowBorder(dpy, w, dc.norm[ColBorder]);
    configure(c); /* propagates border_width, if size doesn't change */
    updatesizehints(c);
    updatewmhints(c);
    XSelectInput(dpy, w, EnterWindowMask|FocusChangeMask|PropertyChangeMask|StructureNotifyMask);
    grabbuttons(c, False);
    if(!c->isfloating)
    c->isfloating = c->oldstate = trans != None || c->isfixed;
    if(c->isfloating)
    XRaiseWindow(dpy, c->win);
    attach(c);
    attachstack(c);
    XMoveResizeWindow(dpy, c->win, c->x + 2 * sw, c->y, c->w, c->h); /* some windows require this */
    XMapWindow(dpy, c->win);
    setclientstate(c, NormalState);
    arrange(c->mon);
    void
    mappingnotify(XEvent *e) {
    XMappingEvent *ev = &e->xmapping;
    XRefreshKeyboardMapping(ev);
    if(ev->request == MappingKeyboard)
    grabkeys();
    void
    maprequest(XEvent *e) {
    static XWindowAttributes wa;
    XMapRequestEvent *ev = &e->xmaprequest;
    if(!XGetWindowAttributes(dpy, ev->window, &wa))
    return;
    if(wa.override_redirect)
    return;
    if(!wintoclient(ev->window))
    manage(ev->window, &wa);
    void
    monocle(Monitor *m) {
    unsigned int n = 0;
    Client *c;
    for(c = m->clients; c; c = c->next)
    if(ISVISIBLE(c))
    n++;
    if(n > 0) /* override layout symbol */
    snprintf(m->ltsymbol, sizeof m->ltsymbol, "[%d]", n);
    for(c = nexttiled(m->clients); c; c = nexttiled(c->next))
    resize(c, m->wx, m->wy, m->ww - 2 * c->bw, m->wh - 2 * c->bw, False);
    void
    movemouse(const Arg *arg) {
    int x, y, ocx, ocy, nx, ny;
    Client *c;
    Monitor *m;
    XEvent ev;
    if(!(c = selmon->sel))
    return;
    restack(selmon);
    ocx = c->x;
    ocy = c->y;
    if(XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync,
    None, cursor[CurMove], CurrentTime) != GrabSuccess)
    return;
    if(!getrootptr(&x, &y))
    return;
    do {
    XMaskEvent(dpy, MOUSEMASK|ExposureMask|SubstructureRedirectMask, &ev);
    switch(ev.type) {
    case ConfigureRequest:
    case Expose:
    case MapRequest:
    handler[ev.type](&ev);
    break;
    case MotionNotify:
    nx = ocx + (ev.xmotion.x - x);
    ny = ocy + (ev.xmotion.y - y);
    if(nx >= selmon->wx && nx <= selmon->wx + selmon->ww
    && ny >= selmon->wy && ny <= selmon->wy + selmon->wh) {
    if(abs(selmon->wx - nx) < snap)
    nx = selmon->wx;
    else if(abs((selmon->wx + selmon->ww) - (nx + WIDTH(c))) < snap)
    nx = selmon->wx + selmon->ww - WIDTH(c);
    if(abs(selmon->wy - ny) < snap)
    ny = selmon->wy;
    else if(abs((selmon->wy + selmon->wh) - (ny + HEIGHT(c))) < snap)
    ny = selmon->wy + selmon->wh - HEIGHT(c);
    if(!c->isfloating && selmon->lt[selmon->sellt]->arrange
    && (abs(nx - c->x) > snap || abs(ny - c->y) > snap))
    togglefloating(NULL);
    if(!selmon->lt[selmon->sellt]->arrange || c->isfloating)
    resize(c, nx, ny, c->w, c->h, True);
    break;
    } while(ev.type != ButtonRelease);
    XUngrabPointer(dpy, CurrentTime);
    if((m = ptrtomon(c->x + c->w / 2, c->y + c->h / 2)) != selmon) {
    sendmon(c, m);
    selmon = m;
    focus(NULL);
    Client *
    nexttiled(Client *c) {
    for(; c && (c->isfloating || !ISVISIBLE(c)); c = c->next);
    return c;
    void
    pop(Client *c) {
    detach(c);
    attach(c);
    focus(c);
    arrange(c->mon);
    void
    propertynotify(XEvent *e) {
    Client *c;
    Window trans;
    XPropertyEvent *ev = &e->xproperty;
    if((ev->window == root) && (ev->atom == XA_WM_NAME))
    updatestatus();
    else if(ev->state == PropertyDelete)
    return; /* ignore */
    else if((c = wintoclient(ev->window))) {
    switch(ev->atom) {
    default: break;
    case XA_WM_TRANSIENT_FOR:
    if(!c->isfloating && (XGetTransientForHint(dpy, c->win, &trans)) &&
    (c->isfloating = (wintoclient(trans)) != NULL))
    arrange(c->mon);
    break;
    case XA_WM_NORMAL_HINTS:
    updatesizehints(c);
    break;
    case XA_WM_HINTS:
    updatewmhints(c);
    drawbars();
    break;
    if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {
    updatetitle(c);
    if(c == c->mon->sel)
    drawbar(c->mon);
    Monitor *
    ptrtomon(int x, int y) {
    Monitor *m;
    for(m = mons; m; m = m->next)
    if(INRECT(x, y, m->wx, m->wy, m->ww, m->wh))
    return m;
    return selmon;
    void
    quit(const Arg *arg) {
    running = False;
    void
    resize(Client *c, int x, int y, int w, int h, Bool interact) {
    if(applysizehints(c, &x, &y, &w, &h, interact))
    resizeclient(c, x, y, w, h);
    void
    resizeclient(Client *c, int x, int y, int w, int h) {
    XWindowChanges wc;
    c->oldx = c->x; c->x = wc.x = x;
    c->oldy = c->y; c->y = wc.y = y;
    c->oldw = c->w; c->w = wc.width = w;
    c->oldh = c->h; c->h = wc.height = h;
    wc.border_width = c->bw;
    XConfigureWindow(dpy, c->win, CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc);
    configure(c);
    XSync(dpy, False);
    void
    resizemouse(const Arg *arg) {
    int ocx, ocy;
    int nw, nh;
    Client *c;
    Monitor *m;
    XEvent ev;
    if(!(c = selmon->sel))
    return;
    restack(selmon);
    ocx = c->x;
    ocy = c->y;
    if(XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync,
    None, cursor[CurResize], CurrentTime) != GrabSuccess)
    return;
    XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w + c->bw - 1, c->h + c->bw - 1);
    do {
    XMaskEvent(dpy, MOUSEMASK|ExposureMask|SubstructureRedirectMask, &ev);
    switch(ev.type) {
    case ConfigureRequest:
    case Expose:
    case MapRequest:
    handler[ev.type](&ev);
    break;
    case MotionNotify:
    nw = MAX(ev.xmotion.x - ocx - 2 * c->bw + 1, 1);
    nh = MAX(ev.xmotion.y - ocy - 2 * c->bw + 1, 1);
    if(c->mon->wx + nw >= selmon->wx && c->mon->wx + nw <= selmon->wx + selmon->ww
    && c->mon->wy + nh >= selmon->wy && c->mon->wy + nh <= selmon->wy + selmon->wh)
    if(!c->isfloating && selmon->lt[selmon->sellt]->arrange
    && (abs(nw - c->w) > snap || abs(nh - c->h) > snap))
    togglefloating(NULL);
    if(!selmon->lt[selmon->sellt]->arrange || c->isfloating)
    resize(c, c->x, c->y, nw, nh, True);
    break;
    } while(ev.type != ButtonRelease);
    XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w + c->bw - 1, c->h + c->bw - 1);
    XUngrabPointer(dpy, CurrentTime);
    while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
    if((m = ptrtomon(c->x + c->w / 2, c->y + c->h / 2)) != selmon) {
    sendmon(c, m);
    selmon = m;
    focus(NULL);
    void
    restack(Monitor *m) {
    Client *c;
    XEvent ev;
    XWindowChanges wc;
    drawbar(m);
    if(!m->sel)
    return;
    if(m->sel->isfloating || !m->lt[m->sellt]->arrange)
    XRaiseWindow(dpy, m->sel->win);
    if(m->lt[m->sellt]->arrange) {
    wc.stack_mode = Below;
    wc.sibling = m->barwin;
    for(c = m->stack; c; c = c->snext)
    if(!c->isfloating && ISVISIBLE(c)) {
    XConfigureWindow(dpy, c->win, CWSibling|CWStackMode, &wc);
    wc.sibling = c->win;
    XSync(dpy, False);
    while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
    void
    run(void) {
    XEvent ev;
    /* main event loop */
    XSync(dpy, False);
    while(running && !XNextEvent(dpy, &ev)) {
    if(handler[ev.type])
    handler[ev.type](&ev); /* call handler */
    void
    scan(void) {
    unsigned int i, num;
    Window d1, d2, *wins = NULL;
    XWindowAttributes wa;
    if(XQueryTree(dpy, root, &d1, &d2, &wins, &num)) {
    for(i = 0; i < num; i++) {
    if(!XGetWindowAttributes(dpy, wins[i], &wa)
    || wa.override_redirect || XGetTransientForHint(dpy, wins[i], &d1))
    continue;
    if(wa.map_state == IsViewable || getstate(wins[i]) == IconicState)
    manage(wins[i], &wa);
    for(i = 0; i < num; i++) { /* now the transients */
    if(!XGetWindowAttributes(dpy, wins[i], &wa))
    continue;
    if(XGetTransientForHint(dpy, wins[i], &d1)
    && (wa.map_state == IsViewable || getstate(wins[i]) == IconicState))
    manage(wins[i], &wa);
    if(wins)
    XFree(wins);
    void
    sendmon(Client *c, Monitor *m) {
    if(c->mon == m)
    return;
    unfocus(c, True);
    detach(c);
    detachstack(c);
    c->mon = m;
    c->tags = m->tagset[m->seltags]; /* assign tags of target monitor */
    attach(c);
    attachstack(c);
    focus(NULL);
    arrange(NULL);
    void
    setclientstate(Client *c, long state) {
    long data[] = { state, None };
    XChangeProperty(dpy, c->win, wmatom[WMState], wmatom[WMState], 32,
    PropModeReplace, (unsigned char *)data, 2);
    Bool
    sendevent(Client *c, Atom proto) {
    int n;
    Atom *protocols;
    Bool exists = False;
    XEvent ev;
    if(XGetWMProtocols(dpy, c->win, &protocols, &n)) {
    while(!exists && n--)
    exists = protocols[n] == proto;
    XFree(protocols);
    if(exists) {
    ev.type = ClientMessage;
    ev.xclient.window = c->win;
    ev.xclient.message_type = wmatom[WMProtocols];
    ev.xclient.format = 32;
    ev.xclient.data.l[0] = proto;
    ev.xclient.data.l[1] = CurrentTime;
    XSendEvent(dpy, c->win, False, NoEventMask, &ev);
    return exists;
    void
    setfocus(Client *c) {
    if(!c->neverfocus)
    XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
    sendevent(c, wmatom[WMTakeFocus]);
    void
    setlayout(const Arg *arg) {
    if(!arg || !arg->v || arg->v != selmon->lt[selmon->sellt])
    selmon->sellt ^= 1;
    if(arg && arg->v)
    selmon->lt[selmon->sellt] = selmon->lts[selmon->curtag] = (Layout *)arg->v;
    strncpy(selmon->ltsymbol, selmon->lt[selmon->sellt]->symbol, sizeof selmon->ltsymbol);
    if(selmon->sel)
    arrange(selmon);
    else
    drawbar(selmon);
    static void
    incnmaster(const Arg *arg) {
    int i;
    if(!arg || !selmon->lt[selmon->sellt]->arrange)
    return;
    i = selmon->nmasters[selmon->curtag] + arg->i;
    selmon->nmasters[selmon->curtag] = i < 0 ? 0 : i;
    arrange(selmon);
    static void
    setnmaster(const Arg *arg) {
    if(!arg || !selmon->lt[selmon->sellt]->arrange)
    return;
    selmon->nmasters[selmon->curtag] = arg->i > 0 ? arg->i : 0;
    arrange(selmon);
    /* arg > 1.0 will set mfact absolutly */
    void
    setmfact(const Arg *arg) {
    float f;
    if(!arg || !selmon->lt[selmon->sellt]->arrange)
    return;
    f = arg->f < 1.0 ? arg->f + selmon->mfacts[selmon->curtag] : arg->f - 1.0;
    if(f < 0.1 || f > 0.9)
    return;
    selmon->mfacts[selmon->curtag] = f;
    arrange(selmon);
    void
    setup(void) {
    XSetWindowAttributes wa;
    /* clean up any zombies immediately */
    sigchld(0);
    /* init screen */
    screen = DefaultScreen(dpy);
    root = RootWindow(dpy, screen);
    initfont(font);
    sw = DisplayWidth(dpy, screen);
    sh = DisplayHeight(dpy, screen);
    bh = dc.h = dc.font.height + 2;
    updategeom();
    /* init atoms */
    wmatom[WMProtocols] = XInternAtom(dpy, "WM_PROTOCOLS", False);
    wmatom[WMDelete] = XInternAtom(dpy, "WM_DELETE_WINDOW", False);
    wmatom[WMState] = XInternAtom(dpy, "WM_STATE", False);
    wmatom[WMTakeFocus] = XInternAtom(dpy, "WM_TAKE_FOCUS", False);
    netatom[NetActiveWindow] = XInternAtom(dpy, "_NET_ACTIVE_WINDOW", False);
    netatom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False);
    netatom[NetWMName] = XInternAtom(dpy, "_NET_WM_NAME", False);
    netatom[NetWMState] = XInternAtom(dpy, "_NET_WM_STATE", False);
    netatom[NetWMFullscreen] = XInternAtom(dpy, "_NET_WM_STATE_FULLSCREEN", False);
    /* init cursors */
    cursor[CurNormal] = XCreateFontCursor(dpy, XC_left_ptr);
    cursor[CurResize] = XCreateFontCursor(dpy, XC_sizing);
    cursor[CurMove] = XCreateFontCursor(dpy, XC_fleur);
    /* init appearance */
    dc.norm[ColBorder] = getcolor(normbordercolor);
    dc.norm[ColBG] = getcolor(normbgcolor);
    dc.norm[ColFG] = getcolor(normfgcolor);
    dc.sel[ColBorder] = getcolor(selbordercolor);
    dc.sel[ColBG] = getcolor(selbgcolor);
    dc.sel[ColFG] = getcolor(selfgcolor);
    dc.drawable = XCreatePixmap(dpy, root, DisplayWidth(dpy, screen), bh, DefaultDepth(dpy, screen));
    dc.gc = XCreateGC(dpy, root, 0, NULL);
    XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter);
    if(!dc.font.set)
    XSetFont(dpy, dc.gc, dc.font.xfont->fid);
    /* init bars */
    updatebars();
    updatestatus();
    /* EWMH support per view */
    XChangeProperty(dpy, root, netatom[NetSupported], XA_ATOM, 32,
    PropModeReplace, (unsigned char *) netatom, NetLast);
    /* select for events */
    wa.cursor = cursor[CurNormal];
    wa.event_mask = SubstructureRedirectMask|SubstructureNotifyMask|ButtonPressMask
    |EnterWindowMask|LeaveWindowMask|StructureNotifyMask
    |PropertyChangeMask;
    XChangeWindowAttributes(dpy, root, CWEventMask|CWCursor, &wa);
    XSelectInput(dpy, root, wa.event_mask);
    grabkeys();
    void
    showhide(Client *c) {
    if(!c)
    return;
    if(ISVISIBLE(c)) { /* show clients top down */
    XMoveWindow(dpy, c->win, c->x, c->y);
    if((!c->mon->lt[c->mon->sellt]->arrange || c->isfloating) && !c->isfullscreen)
    resize(c, c->x, c->y, c->w, c->h, False);
    showhide(c->snext);
    else { /* hide clients bottom up */
    showhide(c->snext);
    XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y);
    void
    sigchld(int unused) {
    if(signal(SIGCHLD, sigchld) == SIG_ERR)
    die("Can't install SIGCHLD handler");
    while(0 < waitpid(-1, NULL, WNOHANG));
    void
    spawn(const Arg *arg) {
    if(fork() == 0) {
    if(dpy)
    close(ConnectionNumber(dpy));
    setsid();
    execvp(((char **)arg->v)[0], (char **)arg->v);
    fprintf(stderr, "dwm: execvp %s", ((char **)arg->v)[0]);
    perror(" failed");
    exit(EXIT_SUCCESS);
    void
    tag(const Arg *arg) {
    if(selmon->sel && arg->ui & TAGMASK) {
    selmon->sel->tags = arg->ui & TAGMASK;
    arrange(selmon);
    void
    tagmon(const Arg *arg) {
    if(!selmon->sel || !mons->next)
    return;
    sendmon(selmon->sel, dirtomon(arg->i));
    int
    textnw(const char *text, unsigned int len) {
    XRectangle r;
    if(dc.font.set) {
    XmbTextExtents(dc.font.set, text, len, NULL, &r);
    return r.width;
    return XTextWidth(dc.font.xfont, text, len);
    void
    ntile(Monitor *m) {
    int x, y, h, w, mw, nmax, nm;
    unsigned int i, n;
    Client *c;
    snprintf(m->ltsymbol, sizeof m->ltsymbol, "=%d]", m->nmasters[m->curtag]);
    for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
    c = nexttiled(m->clients);
    nmax = m->nmasters[m->curtag];
    nm = nmax == 1 ? 1 : MIN(n / 2, nmax);
    if(nm > n)
    nm = n;
    /* master */
    if(nm > 0) {
    mw = selmon->mfacts[selmon->curtag] * m->ww;
    h = m->wh / nm;
    if(h < bh)
    h = m->wh;
    y = m->wy;
    for(i = 0; i < nm; i++, c = nexttiled(c->next)) {
    resize(c, m->wx, y, (n == nm ? m->ww : mw) - 2 * c->bw,
    ((i + 1 == nm) ? m->wy + m->wh - y : h) - 2 * c->bw, False);
    if(h != m->wh)
    y = c->y + HEIGHT(c);
    n -= nm;
    } else
    mw = 0;
    if(n == 0)
    return;
    /* tile stack */
    x = m->wx + mw;
    y = m->wy;
    w = m->ww - mw;
    h = m->wh / n;
    if(h < bh)
    h = m->wh;
    for(i = 0; c; c = nexttiled(c->next), i++) {
    resize(c, x, y, w - 2 * c->bw,
    ((i + 1 == n) ? m->wy + m->wh - y : h) - 2 * c->bw, False);
    if(h != m->wh)
    y = c->y + HEIGHT(c);
    void
    togglebar(const Arg *arg) {
    selmon->showbar = !selmon->showbar;
    updatebarpos(selmon);
    XMoveResizeWindow(dpy, selmon->barwin, selmon->wx, selmon->by, selmon->ww, bh);
    arrange(selmon);
    void
    togglefloating(const Arg *arg) {
    if(!selmon->sel)
    return;
    selmon->sel->isfloating = !selmon->sel->isfloating || selmon->sel->isfixed;
    if(selmon->sel->isfloating)
    resize(selmon->sel, selmon->sel->x, selmon->sel->y,
    selmon->sel->w, selmon->sel->h, False);
    arrange(selmon);
    void
    toggletag(const Arg *arg) {
    unsigned int newtags;
    unsigned int i;
    if(!selmon->sel)
    return;
    newtags = selmon->sel->tags ^ (arg->ui & TAGMASK);
    if(newtags) {
    selmon->sel->tags = newtags;
    if(newtags == ~0) {
    selmon->prevtag = selmon->curtag;
    selmon->curtag = 0;
    if(!(newtags & 1 << (selmon->curtag - 1))) {
    selmon->prevtag = selmon->curtag;
    for (i=0; !(newtags & 1 << i); i++);
    selmon->curtag = i + 1;
    selmon->sel->tags = newtags;
    selmon->lt[selmon->sellt] = selmon->lts[selmon->curtag];
    arrange(selmon);
    void
    toggleview(const Arg *arg) {
    unsigned int newtagset = selmon->tagset[selmon->seltags] ^ (arg->ui & TAGMASK);
    if(newtagset) {
    selmon->tagset[selmon->seltags] = newtagset;
    arrange(selmon);
    void
    unfocus(Client *c, Bool setfocus) {
    if(!c)
    return;
    grabbuttons(c, False);
    XSetWindowBorder(dpy, c->win, dc.norm[ColBorder]);
    if(setfocus)
    XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
    void
    unmanage(Client *c, Bool destroyed) {
    Monitor *m = c->mon;
    XWindowChanges wc;
    /* The server grab construct avoids race conditions. */
    detach(c);
    detachstack(c);
    if(!destroyed) {
    wc.border_width = c->oldbw;
    XGrabServer(dpy);
    XSetErrorHandler(xerrordummy);
    XConfigureWindow(dpy, c->win, CWBorderWidth, &wc); /* restore border */
    XUngrabButton(dpy, AnyButton, AnyModifier, c->win);
    setclientstate(c, WithdrawnState);
    XSync(dpy, False);
    XSetErrorHandler(xerror);
    XUngrabServer(dpy);
    free(c);
    focus(NULL);
    arrange(m);
    void
    unmapnotify(XEvent *e) {
    Client *c;
    XUnmapEvent *ev = &e->xunmap;
    if((c = wintoclient(ev->window)))
    unmanage(c, False);
    void
    updatebars(void) {
    Monitor *m;
    XSetWindowAttributes wa = {
    .override_redirect = True,
    .background_pixmap = ParentRelative,
    .event_mask = ButtonPressMask|ExposureMask
    for(m = mons; m; m = m->next) {
    m->barwin = XCreateWindow(dpy, root, m->wx, m->by, m->ww, bh, 0, DefaultDepth(dpy, screen),
    CopyFromParent, DefaultVisual(dpy, screen),
    CWOverrideRedirect|CWBackPixmap|CWEventMask, &wa);
    XDefineCursor(dpy, m->barwin, cursor[CurNormal]);
    XMapRaised(dpy, m->barwin);
    void
    updatebarpos(Monitor *m) {
    m->wy = m->my;
    m->wh = m->mh;
    if(m->showbar) {
    m->wh -= bh;
    m->by = m->topbar ? m->wy : m->wy + m->wh;
    m->wy = m->topbar ? m->wy + bh : m->wy;
    else
    m->by = -bh;
    Bool
    updategeom(void) {
    Bool dirty = False;
    #ifdef XINERAMA
    if(XineramaIsActive(dpy)) {
    int i, j, n, nn;
    Client *c;
    Monitor *m;
    XineramaScreenInfo *info = XineramaQueryScreens(dpy, &nn);
    XineramaScreenInfo *unique = NULL;
    for(n = 0, m = mons; m; m = m->next, n++);
    /* only consider unique geometries as separate screens */
    if(!(unique = (XineramaScreenInfo *)malloc(sizeof(XineramaScreenInfo) * nn)))
    die("fatal: could not malloc() %u bytes\n", sizeof(XineramaScreenInfo) * nn);
    for(i = 0, j = 0; i < nn; i++)
    if(isuniquegeom(unique, j, &info[i]))
    memcpy(&unique[j++], &info[i], sizeof(XineramaScreenInfo));
    XFree(info);
    nn = j;
    if(n <= nn) {
    for(i = 0; i < (nn - n); i++) { /* new monitors available */
    for(m = mons; m && m->next; m = m->next);
    if(m)
    m->next = createmon();
    else
    mons = createmon();
    for(i = 0, m = mons; i < nn && m; m = m->next, i++)
    if(i >= n
    || (unique[i].x_org != m->mx || unique[i].y_org != m->my
    || unique[i].width != m->mw || unique[i].height != m->mh))
    dirty = True;
    m->num = i;
    m->mx = m->wx = unique[i].x_org;
    m->my = m->wy = unique[i].y_org;
    m->mw = m->ww = unique[i].width;
    m->mh = m->wh = unique[i].height;
    updatebarpos(m);
    else { /* less monitors available nn < n */
    for(i = nn; i < n; i++) {
    for(m = mons; m && m->next; m = m->next);
    while(m->clients) {
    dirty = True;
    c = m->clients;
    m->clients = c->next;
    detachstack(c);
    c->mon = mons;
    attach(c);
    attachstack(c);
    if(m == selmon)
    selmon = mons;
    cleanupmon(m);
    free(unique);
    else
    #endif /* XINERAMA */
    /* default monitor setup */
    if(!mons)
    mons = createmon();
    if(mons->mw != sw || mons->mh != sh) {
    dirty = True;
    mons->mw = mons->ww = sw;
    mons->mh = mons->wh = sh;
    updatebarpos(mons);
    if(dirty) {
    selmon = mons;
    selmon = wintomon(root);
    return dirty;
    void
    updatenumlockmask(void) {
    unsigned int i, j;
    XModifierKeymap *modmap;
    numlockmask = 0;
    modmap = XGetModifierMapping(dpy);
    for(i = 0; i < 8; i++)
    for(j = 0; j < modmap->max_keypermod; j++)
    if(modmap->modifiermap[i * modmap->max_keypermod + j]
    == XKeysymToKeycode(dpy, XK_Num_Lock))
    numlockmask = (1 << i);
    XFreeModifiermap(modmap);
    void
    updatesizehints(Client *c) {
    long msize;
    XSizeHints size;
    if(!XGetWMNormalHints(dpy, c->win, &size, &msize))
    /* size is uninitialized, ensure that size.flags aren't used */
    size.flags = PSize;
    if(size.flags & PBaseSize) {
    c->basew = size.base_width;
    c->baseh = size.base_height;
    else if(size.flags & PMinSize) {
    c->basew = size.min_width;
    c->baseh = size.min_height;
    else
    c->basew = c->baseh = 0;
    if(size.flags & PResizeInc) {
    c->incw = size.width_inc;
    c->inch = size.height_inc;
    else
    c->incw = c->inch = 0;
    if(size.flags & PMaxSize) {
    c->maxw = size

    The diff you use rename tile() to ntile(), you should not have tile in your config.h. The rest of errors probably relate to what the diff has nerfed, or should be gone once you fix that tile.
    I think you should stay on 5.8.2 until all the patches have support for 5.9 if you can't patch on patch on your own.
    (edit) that github repo has issues, it might be good idea to create issue if that patch really have compatible issue with 5.9. That would benefit all other patch users.
    Last edited by livibetter (2011-09-12 14:55:00)

  • Argh...Internet at a crawl...but download speeds are fine?

    I recently just switched back over to Arch...I went back to Ubuntu after I couldn't get my wireless card working. Although I missed living on the bleeding edge so I'm back and I would like to stay here.
    The title pretty much describes it. I can download packages with pacman at 75kb+ which is pretty average for my internet, usually it goes higher.
    Although the moment I try and open Firefox, or Opera, or Epiphany it takes way longer then it should to load any webpage. Like I said I still can't get my wireless card to work with Arch, but I'm using a cable and have connected my computer directly to the router. At the moment I have it setup for a DHCP straight off the beginners guide.
    HOSTNAME="arch"
    #eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
    eth0="dhcp"
    INTERFACES=(eth0)
    gateway="default gw 192.168.0.1"
    ROUTES=(!gateway)
    I read somewhere that this might be caused from using DHCP? I'm not at my computer at the moment, but when I get to it later tonight I'll try and set it up for a static ip and see if that changes anything..so if someone could please post a simple static ip setup so I don't mess it up I'd appreciate it.
    I hate to mention Ubuntu again but is it possible that I could use the NetworkManager that Ubuntu uses? I did
    sudo pacman -S networkmanager
    Although I'm not exactly sure on how to start it, let alone get Arch setup to use it..
    Thanks!

    I installed bind and looked your config files, and in the arch wiki....looks way to complicated...
    Hopefully disabling ipv6 and adding host name will work...although I don't exactly know where the "hosts file" is...:/
    Ok found the hosts file... /etc/hosts
    Now what exactly am I supposed to add to it..? I figure 192.168.0.1 for the IP address but what about
    <hostname.domain.org> <hostname>
    I suppose for the hostname I would put arch? Since I have that in my rc.conf file..
    Help...
    Hmm...I plugged in the cord in a different slot on the router and I'm using firefox3 now..and everything seems to be normal..I dunno if it'll hold-up though..
    Last edited by whaevr (2008-04-11 01:23:12)

  • When setting up my Time Capsule I get an error message that another device is using my computer's IP address.  What can I do about this?

    When I am setting up my new Time Capsule I get a pop up window that says another device is using my IP address and I have to change it.  My time capsule will not work or connect to the Internet.  I assume that is why.  Everything is plugged in as should be.  I also have a wireless DVD player and my DISH network plugged in to the Ethernet of the Time Capsule.

    You need to do the setup of the TC before you plug it into the network.. you obviously already have a router, so set the TC up as bridge device.. in airport utility/internet tab/connection sharing.. off bridge mode.. then you can plug it into the network and whatever is main router will do its job properly.
    If this is not the case, then you have a static IP setup somewhere.. or another dhcp server.. track down and remove it.

  • HP laserjet 1536dnf MFP keeps Printing

    Hi Admin,
    I currently work as an IT Entry Level Support, and I have a problem with HP laserjet 1536dnf MFP  that I cannot give time to figure out why.
    Here's what I have:
    System: WXP Pro v2002 SP2
    Hardware: HP laserjet 1536dnf MFP
    Device Manager Driver: HP LJ M1530 Series Scan ; Driver Date: Nov 16, 2009
    HP laserjet 1536dnf MFP keeps printing JZJZL() and different Random Garbled characters, I can only print properly if I switch it on and Turn it on again.
    One more question: Is there a way to stop whatever is printing from the HP Toolbox.
    Thank you..
    This question was solved.
    View Solution.

    Hi @Claude-Antoine, 
    I understand that the printer is printing garbled print and something keeps printing off from the Toolbox. I can help you with this.
    Most likely the driver is corrupted and you will have to uninstall and reinstall the printer software.
    If you can print the hardware self test page properly, then it would be a software issue.
    Printing a Configuration Report.
    I have provided a document with some steps to try to see if that will resolve the issue.
    Resolving Strange, Garbled or Illogical Text, Incomplete Printouts, or Missing Text or Graphics.
    Here is the link for the newest drivers. HP LaserJet Full Feature Software and Driver.
    How is the printer connected? (USB/Ethernet)
    If your networked, do you have a Static IP setup and what kind of router are you using?
    If you need further assistance, just let me know.
    Have a nice day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • HP Envy D411A WIA\TWAIN non-functional in Windows 7 64-bit

    I'm running windows 7 64-bit with a d-link dir-655 and the HP Envy D411A which I just received.
    I had no issues connecting the printer to the WPA2 network and connecting all the ePrint capabilities, and connecting it as a printer was problem free. The "enable scan to computer" dialogue even comes up ok on the PC, but when I click to initiate a scan from the computer, I get an error message saying that communication to the scanner could not be established, and that I may need to update the IP address, etc etc. I have a static IP setup and reserved for the printer. Literally everything about the thing works except for scanning. If I attempt to scan to the computer (document to file) on the printer's touch screen, it sees my PC, and allows me to start, but then the same error pops up on the computer, and the printer says there is no connection.
    So then I ran the HP Scan Diagnostic, which informs me that the WIA is not functioning, and I should try to uninstall and reinstall the software. I did 3 clean installs last night (2 with the full version, 1 with the "basic drivers,) and it didn't make any difference. The only way I can scan currently is through the web interface accessed through the printer's IP address.
    I searched this forum very thoroughly looking for answers, but I seemed to find only unanswered questions similar to mine. I've verified that the WIA service is running, along with the Shell & Remote Call services that it depends on. I've attempted to restart them, restart the computer, restart the printer, all to no avail.
    The only firewall I have is the windows firewall, and it seems to have exceptions already in place for the HP software. I went ahead and added an exception for the "HPscan.exe" file that I found in the HP folder, but no joy. When I try to run hpscan.exe I receive the same message about how communication could not be established with the scanner.
    I also ran the HP Network Diagnostic which gives me lots of green messages, check marks and high fives, no problems found.

    Thoughts, ideas, and suggestions for other cool looking printers from another manufacturer are welcome here. 

Maybe you are looking for