Linux-api-headers & python-imaging upgraded, Xorg fails.

Hey archers, as the title says, I upgraded. It just asked me to replace kernel-headers with linux-api-headers and to replace php-(something?) with php-input(I think). It may not have been php, but it was something along those lines. Before, xorg wouldn't start, I would login, be flashed with a black screen, and then kicked back to the login screen again. Then I used 'sudo pacman -S slim' Now, Slim wont boot, the log says it's missing a library, and /etc/bin/slim doesn't exist anymore. I would post the logs of Xorg and slim, but i'm using the links browser in the terminal from within my broken system. Xorg complains of something along the lines: {WW}fail Drm device three or four times and then it loads my evdev (_Logitech gaming) mouse, did something along the lines of: {WW}module failed to load before quitting. I'm guessing the problem has something to do with upgrading to the linux-api-headers, since nothing went wrong until I rebooted my computer.
Last edited by silversnakeeyes (2010-02-11 21:42:20)

I checked the log, and you're right, it wasn't just the api-headers. What else was installed/removed & replaced:
lxde-settings-daemon --> lxsession-lite
pil --> python-imaging (where did I get php-input from?)
upgraded slim
upgraded libjpeg
and the log for Slim(wrote it down this time):
Dropping Master
slim: unexpected signal 15
(EE) intel(0): failed to initialize kernel memory manager
setting master
record: extension enabled at configuration time
record: this extension is known to be broken, disabling extension now.
record: bigs.freedesktop.org/show_bug.cgi?id=20500
[config:Dbus] couldn't register object path
dropping master
Any ideas?

Similar Messages

  • Linux-api-headers broke everything?

    I'm not exactly sure what happened but during a full system upgrade everything stopped working and all commands yielded "can not execute". Pacman.log shows that the last thing it did, infact the only thing it did during that upgrade was install linux-api-headers. Rebooting only provided a kernel panic as "failed to execute /sbin/init: No such file or directory". Any help is gladly appreciated.

    On that note I am unable to chroot into the installation as it gives me the same file not found.error for bash.
    EDIT: I mounted my filesystem, unpacked the latest glibc package and moved every file into it's proper place, and now it works.
    Last edited by milso (2012-01-05 06:57:40)

  • Xorg fails with "/usr/lib/libexpat.so.1: invalid ELF header"

    After upgrade, Xorg fails with the following message:
    (EE) AIGLX error: dlopen of usr/lib/xorg/modules/dri/i965_dri.so failed (/usr/lib/libexpat.so.1: invalid ELF header)
    (EE) AIGLX: reverting to software rendering
    openbox: error while loading shared libraries: /usr/lib/libexpat.so.1: invalid ELF header
    (I also get en error about fbcon, fbdev modules, but have read that this is not actually an issue.)
    Thanks for any help.
    Last edited by marimo (2010-01-24 07:12:25)

    If it were different architectures, there would be an ELF class error. Assuming that all of the installed libraries are from the Arch repos, I'm betting that expat is corrupt. I would reinstall expat and see if that solves the problem.

  • Glibc and linux-lts-headers

    Hi,
    I'm using linux lts in my archlinux installation, so I think I don't need linux-api-headers. Thing is glibc depends on linux-api-headers.
    Can I switch dependences to linux-lts-headers safely and replace glibc with a custom PKGBUILD from abs? That package is the only one stopping me to remove linux-api-headers.
    I'll appreciate your help.
    Thanks.

    really? I always thought linux-lts-headers and linux-api-headers are the same but for different kernels :-P.
    Thanks for clearing this up to me. I guess I won't need to modify anything then.
    Regards!
    Last edited by unformatt (2012-07-12 15:47:43)

  • Image upgrade failed

    Hello,
    We are running RME 3.4.1, when doing an image upgrade we are receiving the following error :
    Loading image file to flash device : rep_sw_1054534997912433081 -->  flash:c1200-k9w7-tar.123-8.JEC2.tar using TFTP
    Loading image file to flash device :  rep_sw_1054534997912433081 --> flash:c1200-k9w7-tar.123-8.JEC2.tar using TFTP 
    Error loading image to flash.
    Error Message:
    SWIM1125: Failed  to copy the image to Flash due to the reason - copyFileOpenError :invalid file  name; file not found in partition.
    Retry the  operation. If the problem persists, check the Bug Toolkit application for any  known issues on the running image version.
    Is this another bug ?
    Many thanks,
    Lieven Stubbe
    Belgian Railways

    What is the current image running on the device?  It would be helpful to see a sniffer trace filtering on all traffic between the RME server and the device while the SWIM job runs.

  • After kernel and xorg upgrade, xorg crashes at login

    I've upgraded several packages and have some trouble with Xorg since then. Those are the upgraded packages:
    [2009-12-26 18:08] upgraded libdrm (2.4.16-1 -> 2.4.17-2)
    [2009-12-26 18:08] upgraded libgl (7.6-2 -> 7.7-1)
    [2009-12-26 18:08] upgraded ati-dri (7.6-2 -> 7.7-1)
    [2009-12-26 18:08] upgraded git (1.6.5.7-1 -> 1.6.6-1)
    [2009-12-26 18:09] upgraded gnome-bluetooth (2.28.3-1 -> 2.28.6-1)
    [2009-12-26 18:09] upgraded gnome-user-share (2.28.1-1 -> 2.28.2-1)
    [2009-12-26 18:09] upgraded hdparm (9.27-1 -> 9.27-2)
    [2009-12-26 18:09] upgraded kernel26-firmware (2.6.32.2-1 -> 2.6.32.2-2)
    [2009-12-26 18:10] upgraded kernel26 (2.6.30.6-1 -> 2.6.32.2-2)
    [2009-12-26 18:10] upgraded lib32-libdrm (2.4.16-1 -> 2.4.17-2)
    [2009-12-26 18:10] upgraded lib32-libgl (7.6-2 -> 7.6.1-1)
    [2009-12-26 18:10] upgraded lib32-mesa (7.6-2 -> 7.6.1-1)
    [2009-12-26 18:10] upgraded libgnome (2.28.0-1 -> 2.28.0-2)
    [2009-12-26 18:10] upgraded libxcb (1.4-1 -> 1.5-1)
    [2009-12-26 18:10] upgraded mesa (7.6-2 -> 7.7-1)
    [2009-12-26 18:10] upgraded pm-utils (1.2.6.1-2 -> 1.2.6.1-3)
    [2009-12-26 18:10] upgraded pycups (1.9.46-2 -> 1.9.47-1)
    [2009-12-26 18:10] upgraded ruby-gnome2 (0.19.3-1 -> 0.19.3-2)
    [2009-12-26 18:10] upgraded run-parts (3.2.1-1 -> 3.2.2-1)
    [2009-12-26 18:10] upgraded system-config-printer-common (1.1.13-1 -> 1.1.15-1)
    [2009-12-26 18:10] upgraded system-config-printer-gnome (1.1.13-1 -> 1.1.15-1)
    [2009-12-26 18:11] upgraded totem (2.28.4-1 -> 2.28.5-1)
    [2009-12-26 18:11] upgraded udev (146-2 -> 149-1)
    [2009-12-26 18:11] upgraded xf86-input-evdev (2.2.5-1 -> 2.3.2-1)
    [2009-12-26 18:11] upgraded xf86-input-keyboard (1.3.2-2 -> 1.4.0-1)
    [2009-12-26 18:11] upgraded xf86-input-mouse (1.4.0-2 -> 1.5.0-1)
    [2009-12-26 18:11] upgraded xf86-video-ati (6.12.2-2 -> 6.12.4-3)
    [2009-12-26 18:11] upgraded xf86-video-vesa (2.2.0-1 -> 2.2.1-1)
    [2009-12-26 18:11] upgraded xorg-server-utils (7.4-7 -> 7.5-3)
    [2009-12-26 18:11] upgraded xorg-server (1.6.3.901-1 -> 1.7.3.902-1)
    [2009-12-26 18:11] upgraded zlib (1.2.3.3-3 -> 1.2.3.4-1)
    [2009-12-26 18:14] upgraded flvstreamer (1.8k-1 -> 1.9-1)
    [2009-12-29 12:59] upgraded lib32-libgcrypt (1.4.4-2 -> 1.4.5-1)
    [2009-12-29 12:59] upgraded lib32-libgl (7.6.1-1 -> 7.7-1)
    [2009-12-29 12:59] upgraded lib32-mesa (7.6.1-1 -> 7.7-1)
    [2009-12-29 12:59] upgraded libass (0.9.7-1 -> 0.9.8-1)
    [2009-12-29 12:59] upgraded lucene (2.9.0-1 -> 3.0.0-1)
    [2009-12-29 12:59] upgraded subversion (1.6.6-2 -> 1.6.6-3)
    [2009-12-29 12:59] upgraded tzdata (2009s-1 -> 2009t-1)
    [2009-12-29 12:59] upgraded zlib (1.2.3.4-1 -> 1.2.3.4-3)
    I have tried to disable KMS, and tried further to disable Compiz, to no avail. Every time I log into Xorg, I either get a black screen with nothing showing (I can move the cursor, though), or sometimes I can see the wallpaper. When I do see the wallpaper, however, Xorg eventually freezes. When I do not see the wallpaper, nothing happens.
    Anyway, if you need any more information, tell me, I'll tell it.

    @rocking turtle
    I just uninstalled xf86-input-mouse and xf86-input-keyboard. I had already configured my input devices to work with xf86-input-evdev.
    The login process went a little further than usual (gnome-panel loaded) but then Xorg crashed and I was forced back to GDM.
    @ewaller
    I'm posting my rc.conf, /var/log/Xorg.0.log and the interesting stuff you wanted from everyting.log:
    The intereting stuff in everything.log seems to point at libdrm, and my stupid ATI card.
    Dec 30 10:07:36 cipher kernel: [drm] Initialized drm 1.1.0 20060810
    Dec 30 10:07:36 cipher kernel: [drm] radeon defaulting to userspace modesetting.
    Dec 30 10:07:36 cipher kernel: pci 0000:01:00.0: setting latency timer to 64
    Dec 30 10:07:36 cipher kernel: [drm] Initialized radeon 1.31.0 20080528 for 0000:01:00.0 on minor 0
    Dec 30 10:07:36 cipher kernel: [drm] Setting GART location based on new memory map
    Dec 30 10:07:36 cipher kernel: [drm] Loading R500 Microcode
    Dec 30 10:07:36 cipher kernel: platform radeon_cp.0: firmware: requesting radeon/R520_cp.bin
    Dec 30 10:07:36 cipher load-modules.sh: 'platform:radeon_cp' is not a valid module or alias name
    Dec 30 10:07:36 cipher kernel: [drm] Num pipes: 1
    Dec 30 10:07:36 cipher kernel: [drm] writeback test succeeded in 1 usecs
    Dec 30 10:07:44 cipher gdm-simple-greeter[4794]: GLib-GObject-CRITICAL: g_param_spec_flags: assertion `G_TYPE_IS_FLAGS (flags_type)' failed
    Dec 30 10:07:44 cipher gdm-simple-greeter[4794]: GLib-GObject-CRITICAL: g_object_class_install_property: assertion `G_IS_PARAM_SPEC (pspec)' failed
    Dec 30 10:07:45 cipher gdm-simple-greeter[4794]: WARNING: Unable to read from file /etc/arch-release
    Dec 30 10:07:46 cipher gdm-simple-greeter[4794]: Pango-WARNING: Invalid UTF-8 string passed to pango_layout_set_text()
    Dec 30 10:08:01 cipher nautilus: Nautilus-Actions 1.12.2 initializing...
    Dec 30 10:08:54 cipher kernel: CE: hpet increasing min_delta_ns to 15000 nsec
    Dec 30 10:09:51 cipher kernel: CE: hpet increasing min_delta_ns to 22500 nsec
    Dec 30 10:13:14 cipher NetworkManager: <info> (wlan0): supplicant connection state: completed -> group handshake
    Dec 30 10:13:14 cipher NetworkManager: <info> (wlan0): supplicant connection state: group handshake -> completed
    Dec 30 10:13:51 cipher kernel: [drm] Num pipes: 1
    Dec 30 10:13:52 cipher kernel: [drm] Setting GART location based on new memory map
    Dec 30 10:13:52 cipher kernel: [drm] Loading R500 Microcode
    Dec 30 10:13:52 cipher kernel: platform radeon_cp.0: firmware: requesting radeon/R520_cp.bin
    Dec 30 10:13:52 cipher kernel: [drm] Num pipes: 1
    Dec 30 10:13:52 cipher kernel: [drm] writeback test succeeded in 1 usecs
    Dec 30 10:13:52 cipher load-modules.sh: 'platform:radeon_cp' is not a valid module or alias name
    Dec 30 10:13:54 cipher gdm-simple-greeter[5211]: GLib-GObject-CRITICAL: g_param_spec_flags: assertion `G_TYPE_IS_FLAGS (flags_type)' failed
    Dec 30 10:13:54 cipher gdm-simple-greeter[5211]: GLib-GObject-CRITICAL: g_object_class_install_property: assertion `G_IS_PARAM_SPEC (pspec)' failed
    Dec 30 10:13:54 cipher gdm-simple-greeter[5211]: WARNING: Unable to read from file /etc/arch-release
    Dec 30 10:13:54 cipher gdm-simple-greeter[5211]: Pango-WARNING: Invalid UTF-8 string passed to pango_layout_set_text()
    Dec 30 10:14:03 cipher gnome-session[5241]: WARNING: Could not launch application 'wally.desktop': Unable to start application: Failed to execute child process "wally" (No such file or directory)
    Dec 30 10:14:03 cipher gnome-session[5241]: WARNING: Could not launch application 'awn.desktop': Unable to start application: Failed to execute child process "awn-autostart" (No such file or directory)
    Dec 30 10:14:13 cipher nautilus: Nautilus-Actions 1.12.2 initializing...
    Dec 30 10:14:51 cipher kernel: [drm] Num pipes: 1
    Dec 30 10:14:51 cipher kernel: compiz[5424]: segfault at 4 ip 00007fdda45f93b0 sp 00007fff520a1358 error 4 in libxcb-glx.so.0.0.0[7fdda45f0000+12000]
    Dec 30 10:14:52 cipher kernel: [drm] Setting GART location based on new memory map
    Dec 30 10:14:52 cipher kernel: [drm] Loading R500 Microcode
    Dec 30 10:14:52 cipher kernel: platform radeon_cp.0: firmware: requesting radeon/R520_cp.bin
    Dec 30 10:14:52 cipher kernel: [drm] Num pipes: 1
    Dec 30 10:14:52 cipher kernel: [drm] writeback test succeeded in 1 usecs
    Dec 30 10:14:52 cipher load-modules.sh: 'platform:radeon_cp' is not a valid module or alias name
    Dec 30 10:14:53 cipher gdm-simple-greeter[5630]: GLib-GObject-CRITICAL: g_param_spec_flags: assertion `G_TYPE_IS_FLAGS (flags_type)' failed
    Dec 30 10:14:53 cipher gdm-simple-greeter[5630]: GLib-GObject-CRITICAL: g_object_class_install_property: assertion `G_IS_PARAM_SPEC (pspec)' failed
    Dec 30 10:14:53 cipher gdm-simple-greeter[5630]: WARNING: Unable to read from file /etc/arch-release
    Dec 30 10:14:54 cipher gdm-simple-greeter[5630]: Pango-WARNING: Invalid UTF-8 string passed to pango_layout_set_text()
    Dec 30 10:15:02 cipher nautilus: Nautilus-Actions 1.12.2 initializing...
    Here's my /var/log/Xorg.0.log:
    This is a pre-release version of the X server from The X.Org Foundation.
    It is not supported in any way.
    Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
    Select the "xorg" product for bugs you find in this release.
    Before reporting bugs in pre-release versions please check the
    latest version in the X.Org Foundation git repository.
    See http://wiki.x.org/wiki/GitPage for git access instructions.
    X.Org X Server 1.7.3.902 (1.7.4 RC 2)
    Release Date: 2009-12-26
    X Protocol Version 11, Revision 0
    Build Operating System: Linux 2.6.32-ARCH x86_64
    Current Operating System: Linux cipher 2.6.32-ARCH #1 SMP PREEMPT Sat Dec 26 09:02:58 CET 2009 x86_64
    Kernel command line: root=/dev/disk/by-uuid/cc39eaa7-c39d-4f29-916d-cf0cb8c14611 ro vga=792 boot=quiet
    Build Date: 26 December 2009 02:34:45PM
    Current version of pixman: 0.16.4
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
    Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    (==) Log file: "/var/log/Xorg.0.log", Time: Wed Dec 30 10:14:51 2009
    (==) Using config file: "/etc/X11/xorg.conf"
    (==) ServerLayout "X.org Configured"
    (**) |-->Screen "Screen0" (0)
    (**) | |-->Monitor "Monitor0"
    (**) | |-->Device "Card0"
    (**) Option "AIGLX" "true"
    (==) Automatically adding devices
    (==) Automatically enabling devices
    (**) FontPath set to:
    /usr/share/fonts/misc,
    /usr/share/fonts/100dpi:unscaled,
    /usr/share/fonts/75dpi:unscaled,
    /usr/share/fonts/TTF,
    /usr/share/fonts/Type1,
    /usr/share/fonts/misc,
    /usr/share/fonts/100dpi:unscaled,
    /usr/share/fonts/75dpi:unscaled,
    /usr/share/fonts/TTF,
    /usr/share/fonts/Type1
    (**) ModulePath set to "/usr/lib/xorg/modules"
    (**) Extension "Composite" is enabled
    (II) Cannot locate a core pointer device.
    (II) Cannot locate a core keyboard device.
    (II) The server relies on HAL to provide the list of input devices.
    If no devices become available, reconfigure HAL or disable AutoAddDevices.
    (II) Loader magic: 0x7c09c0
    (II) Module ABI versions:
    X.Org ANSI C Emulation: 0.4
    X.Org Video Driver: 6.0
    X.Org XInput driver : 7.0
    X.Org Server Extension : 2.0
    (--) using VT number 9
    (--) PCI:*(0:1:0:0) 1002:7145:1028:2003 ATI Technologies Inc Radeon Mobility X1400 rev 0, Mem @ 0xd0000000/268435456, 0xefdf0000/65536, I/O @ 0x0000ee00/256, BIOS @ 0x????????/131072
    (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
    (II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
    (II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
    (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
    (II) "dri" will be loaded. This was enabled by default and also specified in the config file.
    (II) "dri2" will be loaded by default.
    (II) LoadModule: "xtrap"
    (WW) Warning, couldn't open module xtrap
    (II) UnloadModule: "xtrap"
    (EE) Failed to load module "xtrap" (module does not exist, 0)
    (II) LoadModule: "extmod"
    (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
    (II) Module extmod: vendor="X.Org Foundation"
    compiled for 1.7.3.902, module version = 1.0.0
    Module class: X.Org Server Extension
    ABI class: X.Org Server Extension, version 2.0
    (II) Loading extension MIT-SCREEN-SAVER
    (II) Loading extension XFree86-VidModeExtension
    (II) Loading extension XFree86-DGA
    (II) Loading extension DPMS
    (II) Loading extension XVideo
    (II) Loading extension XVideo-MotionCompensation
    (II) Loading extension X-Resource
    (II) LoadModule: "dbe"
    (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
    (II) Module dbe: vendor="X.Org Foundation"
    compiled for 1.7.3.902, module version = 1.0.0
    Module class: X.Org Server Extension
    ABI class: X.Org Server Extension, version 2.0
    (II) Loading extension DOUBLE-BUFFER
    (II) LoadModule: "glx"
    (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    (II) Module glx: vendor="X.Org Foundation"
    compiled for 1.7.3.902, module version = 1.0.0
    ABI class: X.Org Server Extension, version 2.0
    (**) AIGLX enabled
    (II) Loading extension GLX
    (II) LoadModule: "dri"
    (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
    (II) Module dri: vendor="X.Org Foundation"
    compiled for 1.7.3.902, module version = 1.0.0
    ABI class: X.Org Server Extension, version 2.0
    (II) Loading extension XFree86-DRI
    (II) LoadModule: "synaptics"
    (II) Loading /usr/lib/xorg/modules/input/synaptics_drv.so
    (II) Module synaptics: vendor="X.Org Foundation"
    compiled for 1.7.3.901, module version = 1.2.1
    Module class: X.Org XInput Driver
    ABI class: X.Org XInput driver, version 7.0
    (II) LoadModule: "dri2"
    (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
    (II) Module dri2: vendor="X.Org Foundation"
    compiled for 1.7.3.902, module version = 1.1.0
    ABI class: X.Org Server Extension, version 2.0
    (II) Loading extension DRI2
    (II) LoadModule: "radeon"
    (II) Loading /usr/lib/xorg/modules/drivers/radeon_drv.so
    (II) Module radeon: vendor="X.Org Foundation"
    compiled for 1.7.3.902, module version = 6.12.4
    Module class: X.Org Video Driver
    ABI class: X.Org Video Driver, version 6.0
    (II) RADEON: Driver for ATI Radeon chipsets:
    ATI Radeon Mobility X600 (M24) 3150 (PCIE), ATI FireMV 2400 (PCI),
    ATI Radeon Mobility X300 (M24) 3152 (PCIE),
    ATI FireGL M24 GL 3154 (PCIE), ATI Radeon X600 (RV380) 3E50 (PCIE),
    ATI FireGL V3200 (RV380) 3E54 (PCIE), ATI Radeon IGP320 (A3) 4136,
    ATI Radeon IGP330/340/350 (A4) 4137, ATI Radeon 9500 AD (AGP),
    ATI Radeon 9500 AE (AGP), ATI Radeon 9600TX AF (AGP),
    ATI FireGL Z1 AG (AGP), ATI Radeon 9800SE AH (AGP),
    ATI Radeon 9800 AI (AGP), ATI Radeon 9800 AJ (AGP),
    ATI FireGL X2 AK (AGP), ATI Radeon 9600 AP (AGP),
    ATI Radeon 9600SE AQ (AGP), ATI Radeon 9600XT AR (AGP),
    ATI Radeon 9600 AS (AGP), ATI FireGL T2 AT (AGP), ATI Radeon 9650,
    ATI FireGL RV360 AV (AGP), ATI Radeon 7000 IGP (A4+) 4237,
    ATI Radeon 8500 AIW BB (AGP), ATI Radeon 8500 AIW BC (AGP),
    ATI Radeon IGP320M (U1) 4336, ATI Radeon IGP330M/340M/350M (U2) 4337,
    ATI Radeon Mobility 7000 IGP 4437, ATI Radeon 9000/PRO If (AGP/PCI),
    ATI Radeon 9000 Ig (AGP/PCI), ATI Radeon X800 (R420) JH (AGP),
    ATI Radeon X800PRO (R420) JI (AGP),
    ATI Radeon X800SE (R420) JJ (AGP), ATI Radeon X800 (R420) JK (AGP),
    ATI Radeon X800 (R420) JL (AGP), ATI FireGL X3 (R420) JM (AGP),
    ATI Radeon Mobility 9800 (M18) JN (AGP),
    ATI Radeon X800 SE (R420) (AGP), ATI Radeon X800XT (R420) JP (AGP),
    ATI Radeon X800 VE (R420) JT (AGP), ATI Radeon X850 (R480) (AGP),
    ATI Radeon X850 XT (R480) (AGP), ATI Radeon X850 SE (R480) (AGP),
    ATI Radeon X850 PRO (R480) (AGP), ATI Radeon X850 XT PE (R480) (AGP),
    ATI Radeon Mobility M7 LW (AGP),
    ATI Mobility FireGL 7800 M7 LX (AGP),
    ATI Radeon Mobility M6 LY (AGP), ATI Radeon Mobility M6 LZ (AGP),
    ATI FireGL Mobility 9000 (M9) Ld (AGP),
    ATI Radeon Mobility 9000 (M9) Lf (AGP),
    ATI Radeon Mobility 9000 (M9) Lg (AGP), ATI Radeon 9700 Pro ND (AGP),
    ATI Radeon 9700/9500Pro NE (AGP), ATI Radeon 9600TX NF (AGP),
    ATI FireGL X1 NG (AGP), ATI Radeon 9800PRO NH (AGP),
    ATI Radeon 9800 NI (AGP), ATI FireGL X2 NK (AGP),
    ATI Radeon 9800XT NJ (AGP),
    ATI Radeon Mobility 9600/9700 (M10/M11) NP (AGP),
    ATI Radeon Mobility 9600 (M10) NQ (AGP),
    ATI Radeon Mobility 9600 (M11) NR (AGP),
    ATI Radeon Mobility 9600 (M10) NS (AGP),
    ATI FireGL Mobility T2 (M10) NT (AGP),
    ATI FireGL Mobility T2e (M11) NV (AGP), ATI Radeon QD (AGP),
    ATI Radeon QE (AGP), ATI Radeon QF (AGP), ATI Radeon QG (AGP),
    ATI FireGL 8700/8800 QH (AGP), ATI Radeon 8500 QL (AGP),
    ATI Radeon 9100 QM (AGP), ATI Radeon 7500 QW (AGP/PCI),
    ATI Radeon 7500 QX (AGP/PCI), ATI Radeon VE/7000 QY (AGP/PCI),
    ATI Radeon VE/7000 QZ (AGP/PCI), ATI ES1000 515E (PCI),
    ATI Radeon Mobility X300 (M22) 5460 (PCIE),
    ATI Radeon Mobility X600 SE (M24C) 5462 (PCIE),
    ATI FireGL M22 GL 5464 (PCIE), ATI Radeon X800 (R423) UH (PCIE),
    ATI Radeon X800PRO (R423) UI (PCIE),
    ATI Radeon X800LE (R423) UJ (PCIE),
    ATI Radeon X800SE (R423) UK (PCIE),
    ATI Radeon X800 XTP (R430) (PCIE), ATI Radeon X800 XL (R430) (PCIE),
    ATI Radeon X800 SE (R430) (PCIE), ATI Radeon X800 (R430) (PCIE),
    ATI FireGL V7100 (R423) (PCIE), ATI FireGL V5100 (R423) UQ (PCIE),
    ATI FireGL unknown (R423) UR (PCIE),
    ATI FireGL unknown (R423) UT (PCIE),
    ATI Mobility FireGL V5000 (M26) (PCIE),
    ATI Mobility FireGL V5000 (M26) (PCIE),
    ATI Mobility Radeon X700 XL (M26) (PCIE),
    ATI Mobility Radeon X700 (M26) (PCIE),
    ATI Mobility Radeon X700 (M26) (PCIE),
    ATI Radeon X550XTX 5657 (PCIE), ATI Radeon 9100 IGP (A5) 5834,
    ATI Radeon Mobility 9100 IGP (U3) 5835,
    ATI Radeon XPRESS 200 5954 (PCIE),
    ATI Radeon XPRESS 200M 5955 (PCIE), ATI Radeon 9250 5960 (AGP),
    ATI Radeon 9200 5961 (AGP), ATI Radeon 9200 5962 (AGP),
    ATI Radeon 9200SE 5964 (AGP), ATI FireMV 2200 (PCI),
    ATI ES1000 5969 (PCI), ATI Radeon XPRESS 200 5974 (PCIE),
    ATI Radeon XPRESS 200M 5975 (PCIE),
    ATI Radeon XPRESS 200 5A41 (PCIE),
    ATI Radeon XPRESS 200M 5A42 (PCIE),
    ATI Radeon XPRESS 200 5A61 (PCIE),
    ATI Radeon XPRESS 200M 5A62 (PCIE),
    ATI Radeon X300 (RV370) 5B60 (PCIE),
    ATI Radeon X600 (RV370) 5B62 (PCIE),
    ATI Radeon X550 (RV370) 5B63 (PCIE),
    ATI FireGL V3100 (RV370) 5B64 (PCIE),
    ATI FireMV 2200 PCIE (RV370) 5B65 (PCIE),
    ATI Radeon Mobility 9200 (M9+) 5C61 (AGP),
    ATI Radeon Mobility 9200 (M9+) 5C63 (AGP),
    ATI Mobility Radeon X800 XT (M28) (PCIE),
    ATI Mobility FireGL V5100 (M28) (PCIE),
    ATI Mobility Radeon X800 (M28) (PCIE), ATI Radeon X850 5D4C (PCIE),
    ATI Radeon X850 XT PE (R480) (PCIE),
    ATI Radeon X850 SE (R480) (PCIE), ATI Radeon X850 PRO (R480) (PCIE),
    ATI unknown Radeon / FireGL (R480) 5D50 (PCIE),
    ATI Radeon X850 XT (R480) (PCIE),
    ATI Radeon X800XT (R423) 5D57 (PCIE),
    ATI FireGL V5000 (RV410) (PCIE), ATI Radeon X700 XT (RV410) (PCIE),
    ATI Radeon X700 PRO (RV410) (PCIE),
    ATI Radeon X700 SE (RV410) (PCIE), ATI Radeon X700 (RV410) (PCIE),
    ATI Radeon X700 SE (RV410) (PCIE), ATI Radeon X1800,
    ATI Mobility Radeon X1800 XT, ATI Mobility Radeon X1800,
    ATI Mobility FireGL V7200, ATI FireGL V7200, ATI FireGL V5300,
    ATI Mobility FireGL V7100, ATI Radeon X1800, ATI Radeon X1800,
    ATI Radeon X1800, ATI Radeon X1800, ATI Radeon X1800,
    ATI FireGL V7300, ATI FireGL V7350, ATI Radeon X1600, ATI RV505,
    ATI Radeon X1300/X1550, ATI Radeon X1550, ATI M54-GL,
    ATI Mobility Radeon X1400, ATI Radeon X1300/X1550,
    ATI Radeon X1550 64-bit, ATI Mobility Radeon X1300,
    ATI Mobility Radeon X1300, ATI Mobility Radeon X1300,
    ATI Mobility Radeon X1300, ATI Radeon X1300, ATI Radeon X1300,
    ATI RV505, ATI RV505, ATI FireGL V3300, ATI FireGL V3350,
    ATI Radeon X1300, ATI Radeon X1550 64-bit, ATI Radeon X1300/X1550,
    ATI Radeon X1600, ATI Radeon X1300/X1550, ATI Mobility Radeon X1450,
    ATI Radeon X1300/X1550, ATI Mobility Radeon X2300,
    ATI Mobility Radeon X2300, ATI Mobility Radeon X1350,
    ATI Mobility Radeon X1350, ATI Mobility Radeon X1450,
    ATI Radeon X1300, ATI Radeon X1550, ATI Mobility Radeon X1350,
    ATI FireMV 2250, ATI Radeon X1550 64-bit, ATI Radeon X1600,
    ATI Radeon X1650, ATI Radeon X1600, ATI Radeon X1600,
    ATI Mobility FireGL V5200, ATI Mobility Radeon X1600,
    ATI Radeon X1650, ATI Radeon X1650, ATI Radeon X1600,
    ATI Radeon X1300 XT/X1600 Pro, ATI FireGL V3400,
    ATI Mobility FireGL V5250, ATI Mobility Radeon X1700,
    ATI Mobility Radeon X1700 XT, ATI FireGL V5200,
    ATI Mobility Radeon X1700, ATI Radeon X2300HD,
    ATI Mobility Radeon HD 2300, ATI Mobility Radeon HD 2300,
    ATI Radeon X1950, ATI Radeon X1900, ATI Radeon X1950,
    ATI Radeon X1900, ATI Radeon X1900, ATI Radeon X1900,
    ATI Radeon X1900, ATI Radeon X1900, ATI Radeon X1900,
    ATI Radeon X1900, ATI Radeon X1900, ATI Radeon X1900,
    ATI AMD Stream Processor, ATI Radeon X1900, ATI Radeon X1950,
    ATI RV560, ATI RV560, ATI Mobility Radeon X1900, ATI RV560,
    ATI Radeon X1950 GT, ATI RV570, ATI RV570, ATI FireGL V7400,
    ATI RV560, ATI Radeon X1650, ATI Radeon X1650, ATI RV560,
    ATI Radeon 9100 PRO IGP 7834, ATI Radeon Mobility 9200 IGP 7835,
    ATI Radeon X1200, ATI Radeon X1200, ATI Radeon X1200,
    ATI Radeon X1200, ATI Radeon X1200, ATI RS740, ATI RS740M, ATI RS740,
    ATI RS740M, ATI Radeon HD 2900 XT, ATI Radeon HD 2900 XT,
    ATI Radeon HD 2900 XT, ATI Radeon HD 2900 Pro, ATI Radeon HD 2900 GT,
    ATI FireGL V8650, ATI FireGL V8600, ATI FireGL V7600,
    ATI Radeon 4800 Series, ATI Radeon HD 4870 x2,
    ATI Radeon 4800 Series, ATI Radeon HD 4850 x2,
    ATI FirePro V8750 (FireGL), ATI FirePro V7760 (FireGL),
    ATI Mobility RADEON HD 4850, ATI Mobility RADEON HD 4850 X2,
    ATI Radeon 4800 Series, ATI FirePro RV770, AMD FireStream 9270,
    AMD FireStream 9250, ATI FirePro V8700 (FireGL),
    ATI Mobility RADEON HD 4870, ATI Mobility RADEON M98,
    ATI Radeon 4800 Series, ATI Radeon 4800 Series, ATI FirePro M7750,
    ATI M98, ATI M98, ATI M98, ATI Mobility Radeon HD 4650,
    ATI Radeon RV730 (AGP), ATI Mobility Radeon HD 4670,
    ATI FirePro M5750, ATI Radeon RV730 (AGP),
    ATI RV730XT [Radeon HD 4670], ATI RADEON E4600,
    ATI Radeon HD 4600 Series, ATI RV730 PRO [Radeon HD 4650],
    ATI FirePro V7750 (FireGL), ATI FirePro V5700 (FireGL),
    ATI FirePro V3750 (FireGL), ATI Mobility Radeon HD 4830,
    ATI Mobility Radeon HD 4850, ATI FirePro M7740, ATI RV740,
    ATI Radeon HD 4770, ATI Radeon HD 4700 Series, ATI Radeon HD 4770,
    ATI FirePro M5750, ATI RV610, ATI Radeon HD 2400 XT,
    ATI Radeon HD 2400 Pro, ATI Radeon HD 2400 PRO AGP, ATI FireGL V4000,
    ATI RV610, ATI Radeon HD 2350, ATI Mobility Radeon HD 2400 XT,
    ATI Mobility Radeon HD 2400, ATI RADEON E2400, ATI RV610,
    ATI FireMV 2260, ATI RV670, ATI Radeon HD3870,
    ATI Mobility Radeon HD 3850, ATI Radeon HD3850,
    ATI Mobility Radeon HD 3850 X2, ATI RV670,
    ATI Mobility Radeon HD 3870, ATI Mobility Radeon HD 3870 X2,
    ATI Radeon HD3870 X2, ATI FireGL V7700, ATI Radeon HD3850,
    ATI Radeon HD3690, AMD Firestream 9170, ATI Radeon HD 4550,
    ATI Radeon RV710, ATI Radeon RV710, ATI Radeon HD 4350,
    ATI Mobility Radeon 4300 Series, ATI Mobility Radeon 4500 Series,
    ATI Mobility Radeon 4500 Series, ATI FirePro RG220, ATI RV630,
    ATI Mobility Radeon HD 2600, ATI Mobility Radeon HD 2600 XT,
    ATI Radeon HD 2600 XT AGP, ATI Radeon HD 2600 Pro AGP,
    ATI Radeon HD 2600 XT, ATI Radeon HD 2600 Pro, ATI Gemini RV630,
    ATI Gemini Mobility Radeon HD 2600 XT, ATI FireGL V5600,
    ATI FireGL V3600, ATI Radeon HD 2600 LE,
    ATI Mobility FireGL Graphics Processor, ATI Radeon RV710,
    ATI Radeon HD 3470, ATI Mobility Radeon HD 3430,
    ATI Mobility Radeon HD 3400 Series, ATI Radeon HD 3450,
    ATI Radeon HD 3450, ATI Radeon HD 3430, ATI Radeon HD 3450,
    ATI FirePro V3700, ATI FireMV 2450, ATI FireMV 2260, ATI FireMV 2260,
    ATI Radeon HD 3600 Series, ATI Radeon HD 3650 AGP,
    ATI Radeon HD 3600 PRO, ATI Radeon HD 3600 XT,
    ATI Radeon HD 3600 PRO, ATI Mobility Radeon HD 3650,
    ATI Mobility Radeon HD 3670, ATI Mobility FireGL V5700,
    ATI Mobility FireGL V5725, ATI Radeon HD 3200 Graphics,
    ATI Radeon 3100 Graphics, ATI Radeon HD 3200 Graphics,
    ATI Radeon 3100 Graphics, ATI Radeon HD 3300 Graphics,
    ATI Radeon HD 3200 Graphics, ATI Radeon 3000 Graphics,
    ATI Radeon HD 4200, ATI Radeon 4100, ATI Mobility Radeon HD 4200,
    ATI Mobility Radeon 4100, ATI RS880
    (II) Primary Device is: PCI 01@00:00:0
    (II) RADEON(0): TOTO SAYS 00000000efdf0000
    (II) RADEON(0): MMIO registers at 0x00000000efdf0000: size 64KB
    (II) RADEON(0): PCI bus 1 card 0 func 0
    (==) RADEON(0): Depth 24, (--) framebuffer bpp 32
    (II) RADEON(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
    (==) RADEON(0): Default visual is TrueColor
    (**) RADEON(0): Option "DRI" "true"
    (II) Loading sub module "vgahw"
    (II) LoadModule: "vgahw"
    (II) Loading /usr/lib/xorg/modules/libvgahw.so
    (II) Module vgahw: vendor="X.Org Foundation"
    compiled for 1.7.3.902, module version = 0.1.0
    ABI class: X.Org Video Driver, version 6.0
    (II) RADEON(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0, hwp->PIOOffset is 0x0000
    (==) RADEON(0): RGB weight 888
    (II) RADEON(0): Using 8 bits per RGB (8 bit DAC)
    (--) RADEON(0): Chipset: "ATI Mobility Radeon X1400" (ChipID = 0x7145)
    (--) RADEON(0): Linear framebuffer at 0x00000000d0000000
    (II) RADEON(0): PCIE card detected
    (II) Loading sub module "int10"
    (II) LoadModule: "int10"
    (II) Loading /usr/lib/xorg/modules/libint10.so
    (II) Module int10: vendor="X.Org Foundation"
    compiled for 1.7.3.902, module version = 1.0.0
    ABI class: X.Org Video Driver, version 6.0
    (II) RADEON(0): initializing int10
    (II) RADEON(0): Primary V_BIOS segment is: 0xc000
    (II) RADEON(0): ATOM BIOS detected
    (II) RADEON(0): ATOM BIOS Rom:
    SubsystemVendorID: 0x1028 SubsystemID: 0x2003
    IOBaseAddress: 0xee00
    Filename: BR18652D.bin
    BIOS Bootup Message:
    M54P Dell Key largo A12 DDR2 BU BIOS 432e/396m Channel B
    (II) RADEON(0): Framebuffer space used by Firmware (kb): 20
    (II) RADEON(0): Start of VRAM area used by Firmware: 0x7ffb000
    (II) RADEON(0): AtomBIOS requests 20kB of VRAM scratch space
    (II) RADEON(0): AtomBIOS VRAM scratch base: 0x7ffb000
    (II) RADEON(0): Cannot get VRAM scratch space. Allocating in main memory instead
    (II) RADEON(0): Default Engine Clock: 432000
    (II) RADEON(0): Default Memory Clock: 396000
    (II) RADEON(0): Maximum Pixel ClockPLL Frequency Output: 1100000
    (II) RADEON(0): Minimum Pixel ClockPLL Frequency Output: 0
    (II) RADEON(0): Maximum Pixel ClockPLL Frequency Input: 13500
    (II) RADEON(0): Minimum Pixel ClockPLL Frequency Input: 1000
    (II) RADEON(0): Maximum Pixel Clock: 400000
    (II) RADEON(0): Reference Clock: 27000
    drmOpenDevice: node name is /dev/dri/card0
    drmOpenDevice: open result is 10, (OK)
    drmOpenByBusid: Searching for BusID pci:0000:01:00.0
    drmOpenDevice: node name is /dev/dri/card0
    drmOpenDevice: open result is 10, (OK)
    drmOpenByBusid: drmOpenMinor returns 10
    drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
    (II) RADEON(0): [dri] Found DRI library version 1.3.0 and kernel module version 1.31.0
    (==) RADEON(0): Page Flipping disabled on r5xx and newer chips.
    (II) RADEON(0): Will try to use DMA for Xv image transfers
    (II) RADEON(0): Generation 2 PCI interface, using max accessible memory
    (II) RADEON(0): Detected total video RAM=131072K, accessible=262144K (PCI BAR=262144K)
    (--) RADEON(0): Mapped VideoRAM: 131072 kByte (64 bit DDR SDRAM)
    (II) RADEON(0): Color tiling enabled by default
    (II) Loading sub module "ddc"
    (II) LoadModule: "ddc"
    (II) Module "ddc" already built-in
    (II) Loading sub module "i2c"
    (II) LoadModule: "i2c"
    (II) Module "i2c" already built-in
    (II) RADEON(0): ref_freq: 2700, min_out_pll: 64800, max_out_pll: 110000, min_in_pll: 100, max_in_pll: 1350, xclk: 40000, sclk: 432.000000, mclk: 396.000000
    (II) RADEON(0): PLL parameters: rf=2700 rd=12 min=64800 max=110000; xclk=40000
    (WW) RADEON(0): LVDS Info:
    XRes: 1280, YRes: 800, DotClock: 68900
    HBlank: 128, HOverPlus: 21, HSyncWidth: 32
    VBlank: 16, VOverPlus: 1, VSyncWidth: 3
    (II) RADEON(0): Skipping TV-Out
    (II) RADEON(0): Skipping Component Video
    encoder: 0x15
    encoder: 0xf
    (II) RADEON(0): Output VGA-0 using monitor section Monitor0
    (II) RADEON(0): I2C bus "VGA-0" initialized.
    (II) RADEON(0): Output LVDS has no monitor section
    (II) RADEON(0): I2C bus "LVDS" initialized.
    (II) RADEON(0): Port0:
    XRANDR name: VGA-0
    Connector: VGA
    CRT1: INTERNAL_KLDSCP_DAC1
    DDC reg: 0x7e40
    (II) RADEON(0): Port1:
    XRANDR name: LVDS
    Connector: LVDS
    LCD1: INTERNAL_LVTM1
    DDC reg: 0x7e30
    (II) RADEON(0): I2C device "VGA-0:ddc2" registered at address 0xA0.
    Dac detection success
    (II) RADEON(0): Output: VGA-0, Detected Monitor Type: 0
    finished output detect: 0
    (II) RADEON(0): I2C device "LVDS:ddc2" registered at address 0xA0.
    (II) RADEON(0): Output: LVDS, Detected Monitor Type: 2
    (II) RADEON(0): EDID data from the display on output: LVDS ----------------------
    (II) RADEON(0): Manufacturer: CPT Model: 140b Serial#: 0
    (II) RADEON(0): Year: 2007 Week: 14
    (II) RADEON(0): EDID Version: 1.3
    (II) RADEON(0): Digital Display Input
    (II) RADEON(0): Max Image Size [cm]: horiz.: 33 vert.: 21
    (II) RADEON(0): Gamma: 2.20
    (II) RADEON(0): No DPMS capabilities specified
    (II) RADEON(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4
    (II) RADEON(0): First detailed timing is preferred mode
    (II) RADEON(0): redX: 0.613 redY: 0.336 greenX: 0.311 greenY: 0.563
    (II) RADEON(0): blueX: 0.152 blueY: 0.131 whiteX: 0.315 whiteY: 0.329
    (II) RADEON(0): Manufacturer's mask: 0
    (II) RADEON(0): Supported detailed timing:
    (II) RADEON(0): clock: 68.9 MHz Image Size: 331 x 207 mm
    (II) RADEON(0): h_active: 1280 h_sync: 1301 h_sync_end 1333 h_blank_end 1408 h_border: 0
    (II) RADEON(0): v_active: 800 v_sync: 801 v_sync_end 804 v_blanking: 816 v_border: 0
    (II) RADEON(0): Unknown vendor-specific block f
    (II) RADEON(0): CT7810154WB4
    (II) RADEON(0): *=DPn
    (II) RADEON(0): EDID (in hex):
    (II) RADEON(0): 00ffffffffffff000e140b1400000000
    (II) RADEON(0): 0e110103802115780a092d9d564f9027
    (II) RADEON(0): 21505400000001010101010101010101
    (II) RADEON(0): 010101010101ea1a0080502010301520
    (II) RADEON(0): 13004bcf100000190000000f00000000
    (II) RADEON(0): 0000000000206e050f00000000fe0043
    (II) RADEON(0): 543738313031353457423420000000fe
    (II) RADEON(0): 002a3d44506e94b7ff010120202000f7
    finished output detect: 1
    finished all detect
    before xf86InitialConfiguration
    Dac detection success
    (II) RADEON(0): Output: VGA-0, Detected Monitor Type: 0
    (II) RADEON(0): Output: LVDS, Detected Monitor Type: 2
    (II) RADEON(0): EDID data from the display on output: LVDS ----------------------
    (II) RADEON(0): Manufacturer: CPT Model: 140b Serial#: 0
    (II) RADEON(0): Year: 2007 Week: 14
    (II) RADEON(0): EDID Version: 1.3
    (II) RADEON(0): Digital Display Input
    (II) RADEON(0): Max Image Size [cm]: horiz.: 33 vert.: 21
    (II) RADEON(0): Gamma: 2.20
    (II) RADEON(0): No DPMS capabilities specified
    (II) RADEON(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4
    (II) RADEON(0): First detailed timing is preferred mode
    (II) RADEON(0): redX: 0.613 redY: 0.336 greenX: 0.311 greenY: 0.563
    (II) RADEON(0): blueX: 0.152 blueY: 0.131 whiteX: 0.315 whiteY: 0.329
    (II) RADEON(0): Manufacturer's mask: 0
    (II) RADEON(0): Supported detailed timing:
    (II) RADEON(0): clock: 68.9 MHz Image Size: 331 x 207 mm
    (II) RADEON(0): h_active: 1280 h_sync: 1301 h_sync_end 1333 h_blank_end 1408 h_border: 0
    (II) RADEON(0): v_active: 800 v_sync: 801 v_sync_end 804 v_blanking: 816 v_border: 0
    (II) RADEON(0): Unknown vendor-specific block f
    (II) RADEON(0): CT7810154WB4
    (II) RADEON(0): *=DPn
    (II) RADEON(0): EDID (in hex):
    (II) RADEON(0): 00ffffffffffff000e140b1400000000
    (II) RADEON(0): 0e110103802115780a092d9d564f9027
    (II) RADEON(0): 21505400000001010101010101010101
    (II) RADEON(0): 010101010101ea1a0080502010301520
    (II) RADEON(0): 13004bcf100000190000000f00000000
    (II) RADEON(0): 0000000000206e050f00000000fe0043
    (II) RADEON(0): 543738313031353457423420000000fe
    (II) RADEON(0): 002a3d44506e94b7ff010120202000f7
    (II) RADEON(0): EDID vendor "CPT", prod id 5131
    (II) RADEON(0): Output VGA-0 disconnected
    (II) RADEON(0): Output LVDS connected
    (II) RADEON(0): Using exact sizes for initial modes
    (II) RADEON(0): Output LVDS using initial mode 1280x800
    (II) RADEON(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
    after xf86InitialConfiguration
    (==) RADEON(0): DPI set to (96, 96)
    (II) Loading sub module "fb"
    (II) LoadModule: "fb"
    (II) Loading /usr/lib/xorg/modules/libfb.so
    (II) Module fb: vendor="X.Org Foundation"
    compiled for 1.7.3.902, module version = 1.0.0
    ABI class: X.Org ANSI C Emulation, version 0.4
    (II) Loading sub module "ramdac"
    (II) LoadModule: "ramdac"
    (II) Module "ramdac" already built-in
    (==) RADEON(0): Using XAA acceleration architecture
    (II) Loading sub module "xaa"
    (II) LoadModule: "xaa"
    (II) Loading /usr/lib/xorg/modules/libxaa.so
    (II) Module xaa: vendor="X.Org Foundation"
    compiled for 1.7.3.902, module version = 1.2.1
    ABI class: X.Org Video Driver, version 6.0
    (!!) RADEON(0): For information on using the multimedia capabilities
    of this adapter, please see http://gatos.sf.net.
    (!!) RADEON(0): MergedFB support has been removed and replaced with xrandr 1.2 support
    (--) Depth 24 pixmap format is 32 bpp
    (II) RADEON(0): RADEONScreenInit d0000000 0 0
    Output LCD1 disable success
    Blank CRTC 0 success
    Disable CRTC 0 success
    Blank CRTC 1 success
    Disable CRTC 1 success
    (==) RADEON(0): Using 24 bit depth buffer
    (II) RADEON(0): RADEONInitMemoryMap() :
    (II) RADEON(0): mem_size : 0x08000000
    (II) RADEON(0): MC_FB_LOCATION : 0xd7ffd000
    (II) RADEON(0): MC_AGP_LOCATION : 0x003f0000
    (II) RADEON(0): Depth moves disabled by default
    (II) RADEON(0): Using 32 MB GART aperture
    (II) RADEON(0): Using 1 MB for the ring buffer
    (II) RADEON(0): Using 2 MB for vertex/indirect buffers
    (II) RADEON(0): Using 29 MB for GART textures
    (II) RADEON(0): Memory manager initialized to (0,0) (1280,8191)
    (II) RADEON(0): Reserved area from (0,1280) to (1280,1282)
    (II) RADEON(0): Largest offscreen area available: 1280 x 6909
    (II) RADEON(0): Will use front buffer at offset 0x0
    (II) RADEON(0): Will use back buffer at offset 0x1978000
    (II) RADEON(0): Will use depth buffer at offset 0x1fb8000
    (II) RADEON(0): Will use 32 kb for PCI GART table at offset 0x7ff8000
    (II) RADEON(0): Will use 92160 kb for textures at offset 0x25f8000
    drmOpenDevice: node name is /dev/dri/card0
    drmOpenDevice: open result is 10, (OK)
    drmOpenDevice: node name is /dev/dri/card0
    drmOpenDevice: open result is 10, (OK)
    drmOpenByBusid: Searching for BusID pci:0000:01:00.0
    drmOpenDevice: node name is /dev/dri/card0
    drmOpenDevice: open result is 10, (OK)
    drmOpenByBusid: drmOpenMinor returns 10
    drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
    (II) [drm] DRM interface version 1.3
    (II) [drm] DRM open master succeeded.
    (II) RADEON(0): [drm] Using the DRM lock SAREA also for drawables.
    (II) RADEON(0): [drm] framebuffer handle = 0xd0000000
    (II) RADEON(0): [drm] added 1 reserved context for kernel
    (II) RADEON(0): X context handle = 0x1
    (II) RADEON(0): [drm] installed DRM signal handler
    (II) RADEON(0): [pci] 32768 kB allocated with handle 0x0507f900
    (II) RADEON(0): [pci] ring handle = 0x1b7ff000
    (II) RADEON(0): [pci] Ring mapped at 0x7fe92fe69000
    (II) RADEON(0): [pci] Ring contents 0x00000000
    (II) RADEON(0): [pci] ring read ptr handle = 0x2b800000
    (II) RADEON(0): [pci] Ring read ptr mapped at 0x7fe93c4a0000
    (II) RADEON(0): [pci] Ring read ptr contents 0x00000000
    (II) RADEON(0): [pci] vertex/indirect buffers handle = 0x1b800000
    (II) RADEON(0): [pci] Vertex/indirect buffers mapped at 0x7fe92fc69000
    (II) RADEON(0): [pci] Vertex/indirect buffers contents 0x00000000
    (II) RADEON(0): [pci] GART texture map handle = 0x1b801000
    (II) RADEON(0): [pci] GART Texture map mapped at 0x7fe92dfe9000
    (II) RADEON(0): [drm] register handle = 0x2fff8000
    (II) RADEON(0): [dri] Visual configs initialized
    (II) RADEON(0): RADEONRestoreMemMapRegisters() :
    (II) RADEON(0): MC_FB_LOCATION : 0xd7ffd000 0xd7ffd000
    (II) RADEON(0): MC_AGP_LOCATION : 0x003f0000
    (==) RADEON(0): Backing store disabled
    (II) RADEON(0): [DRI] installation complete
    (II) RADEON(0): [drm] Added 32 65536 byte vertex/indirect buffers
    (II) RADEON(0): [drm] Mapped 32 vertex/indirect buffers
    (II) RADEON(0): [drm] dma control initialized, using IRQ 16
    (II) RADEON(0): [drm] Initialized kernel GART heap manager, 29884416
    (WW) RADEON(0): DRI init changed memory map, adjusting ...
    (WW) RADEON(0): MC_FB_LOCATION was: 0xd7ffd000 is: 0xd7ffd000
    (WW) RADEON(0): MC_AGP_LOCATION was: 0x003f0000 is: 0xffffffc0
    (II) RADEON(0): RADEONRestoreMemMapRegisters() :
    (II) RADEON(0): MC_FB_LOCATION : 0xd7ffd000 0xd7ffd000
    (II) RADEON(0): MC_AGP_LOCATION : 0xffffffc0
    (II) RADEON(0): Direct rendering enabled
    (II) RADEON(0): XAA Render acceleration unsupported on Radeon 9500/9700 and newer. Please use EXA instead.
    (II) RADEON(0): Render acceleration disabled
    (II) RADEON(0): num quad-pipes is 1
    (**) RADEON(0): Option "XaaNoOffscreenPixmaps" "true"
    (II) RADEON(0): Using XFree86 Acceleration Architecture (XAA)
    Screen to screen bit blits
    Solid filled rectangles
    8x8 mono pattern filled rectangles
    Indirect CPU to Screen color expansion
    Solid Lines
    Scanline Image Writes
    Setting up tile and stipple cache:
    32 128x128 slots
    32 256x256 slots
    16 512x512 slots
    (II) RADEON(0): Acceleration enabled
    (==) RADEON(0): DPMS enabled
    (==) RADEON(0): Silken mouse enabled
    (II) RADEON(0): Will use 32 kb for hardware cursor 0 at offset 0x00643000
    (II) RADEON(0): Will use 32 kb for hardware cursor 1 at offset 0x00648000
    (II) RADEON(0): Largest offscreen area available: 1280 x 6901
    (II) RADEON(0): Set up textured video
    Output CRT1 disable success
    Output LCD1 disable success
    Blank CRTC 0 success
    Disable CRTC 0 success
    Blank CRTC 1 success
    Disable CRTC 1 success
    Output LCD1 disable success
    Blank CRTC 0 success
    Disable CRTC 0 success
    Mode 1280x800 - 1408 816 10
    (II) RADEON(0): RADEONRestoreMemMapRegisters() :
    (II) RADEON(0): MC_FB_LOCATION : 0xd7ffd000 0xd7ffd000
    (II) RADEON(0): MC_AGP_LOCATION : 0xffffffc0
    freq: 68900000
    best_freq: 68900000
    best_feedback_div: 689
    best_ref_div: 18
    best_post_div: 15
    (II) RADEON(0): crtc(0) Clock: mode 68900, PLL 68900
    (II) RADEON(0): crtc(0) PLL : refdiv 18, fbdiv 0x2B1(689), pdiv 15
    Set CRTC 0 PLL success
    Set CRTC Timing success
    Set CRTC 0 Overscan success
    Not using RMX
    scaler 0 setup success
    Set CRTC 0 Source success
    crtc 0 YUV disable setup success
    Output digital setup success
    Output LCD1 enable success
    Enable CRTC 0 success
    Unblank CRTC 0 success
    Output CRT1 disable success
    Blank CRTC 1 success
    Disable CRTC 1 success
    (II) RADEON(0): RandR 1.2 enabled, ignore the following RandR disabled message.
    (--) RandR disabled
    (II) Initializing built-in extension Generic Event Extension
    (II) Initializing built-in extension SHAPE
    (II) Initializing built-in extension MIT-SHM
    (II) Initializing built-in extension XInputExtension
    (II) Initializing built-in extension XTEST
    (II) Initializing built-in extension BIG-REQUESTS
    (II) Initializing built-in extension SYNC
    (II) Initializing built-in extension XKEYBOARD
    (II) Initializing built-in extension XC-MISC
    (II) Initializing built-in extension SECURITY
    (II) Initializing built-in extension XINERAMA
    (II) Initializing built-in extension XFIXES
    (II) Initializing built-in extension RENDER
    (II) Initializing built-in extension RANDR
    (II) Initializing built-in extension COMPOSITE
    (II) Initializing built-in extension DAMAGE
    (II) AIGLX: Screen 0 is not DRI2 capable
    drmOpenDevice: node name is /dev/dri/card0
    drmOpenDevice: open result is 11, (OK)
    drmOpenByBusid: Searching for BusID pci:0000:01:00.0
    drmOpenDevice: node name is /dev/dri/card0
    drmOpenDevice: open result is 11, (OK)
    drmOpenByBusid: drmOpenMinor returns 11
    drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
    (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
    (II) AIGLX: enabled GLX_SGI_make_current_read
    (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
    (II) AIGLX: enabled GLX_texture_from_pixmap with driver support
    (II) AIGLX: Loaded and initialized /usr/lib/xorg/modules/dri/r300_dri.so
    (II) GLX: Initialized DRI GL provider for screen 0
    (II) RADEON(0): Setting screen physical size to 338 x 211
    (II) config/hal: Adding input device AT Translated Set 2 keyboard
    (II) LoadModule: "evdev"
    (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
    (II) Module evdev: vendor="X.Org Foundation"
    compiled for 1.7.3, module version = 2.3.2
    Module class: X.Org XInput Driver
    ABI class: X.Org XInput driver, version 7.0
    (**) AT Translated Set 2 keyboard: always reports core events
    (**) AT Translated Set 2 keyboard: Device: "/dev/input/event1"
    (II) AT Translated Set 2 keyboard: Found keys
    (II) AT Translated Set 2 keyboard: Configuring as keyboard
    (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD)
    (**) Option "xkb_rules" "evdev"
    (**) Option "xkb_model" "evdev"
    (**) Option "xkb_layout" "ca"
    (**) Option "xkb_variant" "fr"
    (II) config/hal: Adding input device Macintosh mouse button emulation
    (**) Macintosh mouse button emulation: always reports core events
    (**) Macintosh mouse button emulation: Device: "/dev/input/event0"
    (II) Macintosh mouse button emulation: Found 3 mouse buttons
    (II) Macintosh mouse button emulation: Found relative axes
    (II) Macintosh mouse button emulation: Found x and y relative axes
    (II) Macintosh mouse button emulation: Configuring as mouse
    (**) Macintosh mouse button emulation: YAxisMapping: buttons 4 and 5
    (**) Macintosh mouse button emulation: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
    (II) XINPUT: Adding extended input device "Macintosh mouse button emulation" (type: MOUSE)
    (**) Macintosh mouse button emulation: (accel) keeping acceleration scheme 1
    (**) Macintosh mouse button emulation: (accel) acceleration profile 0
    (II) Macintosh mouse button emulation: initialized for relative axes.
    (II) config/hal: Adding input device SynPS/2 Synaptics TouchPad
    (II) Synaptics touchpad driver version 1.2.1
    (**) Option "Device" "/dev/input/event9"
    (II) SynPS/2 Synaptics TouchPad: x-axis range 1472 - 5472
    (II) SynPS/2 Synaptics TouchPad: y-axis range 1408 - 4448
    (II) SynPS/2 Synaptics TouchPad: pressure range 0 - 255
    (II) SynPS/2 Synaptics TouchPad: finger width range 0 - 0
    (II) SynPS/2 Synaptics TouchPad: buttons: left right middle double triple
    (**) Option "TapButton1" "1"
    (**) Option "TapButton2" "2"
    (**) Option "TapButton3" "3"
    (--) SynPS/2 Synaptics TouchPad: touchpad found
    (**) SynPS/2 Synaptics TouchPad: always reports core events
    (II) XINPUT: Adding extended input device "SynPS/2 Synaptics TouchPad" (type: TOUCHPAD)
    (**) SynPS/2 Synaptics TouchPad: (accel) keeping acceleration scheme 1
    (**) SynPS/2 Synaptics TouchPad: (accel) acceleration profile 0
    (--) SynPS/2 Synaptics TouchPad: touchpad found
    (II) config/hal: Adding input device Logitech USB-PS/2 Optical Mouse
    (**) Logitech USB-PS/2 Optical Mouse: always reports core events
    (**) Logitech USB-PS/2 Optical Mouse: Device: "/dev/input/event8"
    (II) Logitech USB-PS/2 Optical Mouse: Found 12 mouse buttons
    (II) Logitech USB-PS/2 Optical Mouse: Found scroll wheel(s)
    (II) Logitech USB-PS/2 Optical Mouse: Found relative axes
    (II) Logitech USB-PS/2 Optical Mouse: Found x and y relative axes
    (II) Logitech USB-PS/2 Optical Mouse: Configuring as mouse
    (**) Logitech USB-PS/2 Optical Mouse: YAxisMapping: buttons 4 and 5
    (**) Logitech USB-PS/2 Optical Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
    (II) XINPUT: Adding extended input device "Logitech USB-PS/2 Optical Mouse" (type: MOUSE)
    (**) Logitech USB-PS/2 Optical Mouse: (accel) keeping acceleration scheme 1
    (**) Logitech USB-PS/2 Optical Mouse: (accel) acceleration profile 0
    (II) Logitech USB-PS/2 Optical Mouse: initialized for relative axes.
    (II) config/hal: Adding input device Chicony USB Keyboard
    (**) Chicony USB Keyboard: always reports core events
    (**) Chicony USB Keyboard: Device: "/dev/input/event7"
    (II) Chicony USB Keyboard: Found keys
    (II) Chicony USB Keyboard: Configuring as keyboard
    (II) XINPUT: Adding extended input device "Chicony USB Keyboard" (type: KEYBOARD)
    (**) Option "xkb_rules" "evdev"
    (**) Option "xkb_model" "evdev"
    (**) Option "xkb_layout" "ca"
    (**) Option "xkb_variant" "fr"
    (II) config/hal: Adding input device Chicony USB Keyboard
    (**) Chicony USB Keyboard: always reports core events
    (**) Chicony USB Keyboard: Device: "/dev/input/event6"
    (II) Chicony USB Keyboard: Found keys
    (II) Chicony USB Keyboard: Configuring as keyboard
    (II) XINPUT: Adding extended input device "Chicony USB Keyboard" (type: KEYBOARD)
    (**) Option "xkb_rules" "evdev"
    (**) Option "xkb_model" "evdev"
    (**) Option "xkb_layout" "ca"
    (**) Option "xkb_variant" "fr"
    (II) config/hal: Adding input device Sleep Button
    (**) Sleep Button: always reports core events
    (**) Sleep Button: Device: "/dev/input/event4"
    (II) Sleep Button: Found keys
    (II) Sleep Button: Configuring as keyboard
    (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD)
    (**) Option "xkb_rules" "evdev"
    (**) Option "xkb_model" "evdev"
    (**) Option "xkb_layout" "ca"
    (**) Option "xkb_variant" "fr"
    (II) config/hal: Adding input device Power Button
    (**) Power Button: always reports core events
    (**) Power Button: Device: "/dev/input/event3"
    (II) Power Button: Found keys
    (II) Power Button: Configuring as keyboard
    (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD)
    (**) Option "xkb_rules" "evdev"
    (**) Option "xkb_model" "evdev"
    (**) Option "xkb_layout" "ca"
    (**) Option "xkb_variant" "fr"
    (II) config/hal: Adding input device Video Bus
    (**) Video Bus: always reports core events
    (**) Video Bus: Device: "/dev/input/event5"
    (II) Video Bus: Found keys
    (II) Video Bus: Configuring as keyboard
    (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD)
    (**) Option "xkb_rules" "evdev"
    (**) Option "xkb_model" "evdev"
    (**) Option "xkb_layout" "ca"
    (**) Option "xkb_variant" "fr"
    Dac detection success
    (II) RADEON(0): Output: VGA-0, Detected Monitor Type: 0
    (II) RADEON(0): EDID vendor "CPT", prod id 5131
    (II) RADEON(0): Printing DDC gathered Modelines:
    (II) RADEON(0): Modeline "1280x800"x0.0 68.90 1280 1301 1333 1408 800 801 804 816 -hsync -vsync (48.9 kHz)
    (II) RADEON(0): Output: LVDS, Detected Monitor Type: 2
    (II) RADEON(0): EDID data from the display on output: LVDS ----------------------
    (II) RADEON(0): Manufacturer: CPT Model: 140b Serial#: 0
    (II) RADEON(0): Year: 2007 Week: 14
    (II) RADEON(0): EDID Version: 1.3
    (II) RADEON(0): Digital Display Input
    (II) RADEON(0): Max Image Size [cm]: horiz.: 33 vert.: 21
    (II) RADEON(0): Gamma: 2.20
    (II) RADEON(0): No DPMS capabilities specified
    (II) RADEON(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4
    (II) RADEON(0): First detailed timing is preferred mode
    (II) RADEON(0): redX: 0.613 redY: 0.336 greenX: 0.311 greenY: 0.563
    (II) RADEON(0): blueX: 0.152 blueY: 0.131 whiteX: 0.315 whiteY: 0.329
    (II) RADEON(0): Manufacturer's mask: 0
    (II) RADEON(0): Supported detailed timing:
    (II) RADEON(0): clock: 68.9 MHz Image Size: 331 x 207 mm
    (II) RADEON(0): h_active: 1280 h_sync: 1301 h_sync_end 1333 h_blank_end 1408 h_border: 0
    (II) RADEON(0): v_active: 800 v_sync: 801 v_sync_end 804 v_blanking: 816 v_border: 0
    (II) RADEON(0): Unknown vendor-specific block f
    (II) RADEON(0): CT7810154WB4
    (II) RADEON(0): *=DPn
    (II) RADEON(0): EDID (in hex):
    (II) RADEON(0): 00ffffffffffff000e140b1400000000
    (II) RADEON(0): 0e110103802115780a092d9d564f9027
    (II) RADEON(0): 21505400000001010101010101010101
    (II) RADEON(0): 010101010101ea1a0080502010301520
    (II) RADEON(0): 13004bcf100000190000000f00000000
    (II) RADEON(0): 0000000000206e050f00000000fe0043
    (II) RADEON(0): 543738313031353457423420000000fe
    (II) RADEON(0): 002a3d44506e94b7ff010120202000f7
    (II) RADEON(0): EDID vendor "CPT", prod id 5131
    Dac detection success
    (II) RADEON(0): Output: VGA-0, Detected Monitor Type: 0
    (II) RADEON(0): EDID vendor "CPT", prod id 5131
    (II) RADEON(0): Printing DDC gathered Modelines:
    (II) RADEON(0): Modeline "1280x800"x0.0 68.90 1280 1301 1333 1408 800 801 804 816 -hsync -vsync (48.9 kHz)
    (II) RADEON(0): Output: LVDS, Detected Monitor Type: 2
    (II) RADEON(0): EDID data from the display on output: LVDS ----------------------
    (II) RADEON(0): Manufacturer: CPT Model: 140b Serial#: 0
    (II) RADEON(0): Year: 2007 Week: 14
    (II) RADEON(0): EDID Version: 1.3
    (II) RADEON(0): Digital Display Input
    (II) RADEON(0): Max Image Size [cm]: horiz.: 33 vert.: 21
    (II) RADEON(0): Gamma: 2.20
    (II) RADEON(0): No DPMS capabilities specified
    (II) RADEON(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4
    (II) RADEON(0): First detailed timing is preferred mode
    (II) RADEON(0): redX: 0.613 redY: 0.336 greenX: 0.311 greenY: 0.563
    (II) RADEON(0): blueX: 0.152 blueY: 0.131 whiteX: 0.315 whiteY: 0.329
    (II) RADEON(0): Manufacturer's mask: 0
    (II) RADEON(0): Supported detailed timing:
    (II) RADEON(0): clock: 68.9 MHz Image Size: 331 x 207 mm
    (II) RADEON(0): h_active: 1280 h_sync: 1301 h_sync_end 1333 h_blank_end 1408 h_border: 0
    (II) RADEON(0): v_active: 800 v_sync: 801 v_sync_end 804 v_blanking: 816 v_border: 0
    (II) RADEON(0): Unknown vendor-specific block f
    (II) RADEON(0): CT7810154WB4
    (II) RADEON(0): *=DPn
    (II) RADEON(0): EDID (in hex):
    (II) RADEON(0): 00ffffffffffff000e140b1400000000
    (II) RADEON(0): 0e110103802115780a092d9d564f9027
    (II) RADEON(0): 21505400000001010101010101010101
    (II) RADEON(0): 010101010101ea1a0080502010301520
    (II) RADEON(0): 13004bcf100000190000000f00000000
    (II) RADEON(0): 0000000000206e050f00000000fe0043
    (II) RADEON(0): 543738313031353457423420000000fe
    (II) RADEON(0): 002a3d44506e94b7ff010120202000f7
    (II) RADEON(0): EDID vendor "CPT", prod id 5131
    Dac detection success
    (II) RADEON(0): Output: VGA-0, Detected Monitor Type: 0
    (II) RADEON(0): EDID vendor "CPT", prod id 5131
    (II) RADEON(0): Printing DDC gathered Modelines:
    (II) RADEON(0): Modeline "1280x800"x0.0 68.90 1280 1301 1333 1408 800 801 804 816 -hsync -vsync (48.9 kHz)
    (II) RADEON(0): Output: LVDS, Detected Monitor Type: 2
    (II) RADEON(0): EDID data from the display on output: LVDS ----------------------
    (II) RADEON(0): Manufacturer: CPT Model: 140b Serial#: 0
    (II) RADEON(0): Year: 2007 Week: 14
    (II) RADEON(0): EDID Version: 1.3
    (II) RADEON(0): Digital Display Input
    (II) RADEON(0): Max Image Size [cm]: horiz.: 33 vert.: 21
    (II) RADEON(0): Gamma: 2.20
    (II) RADEON(0): No DPMS capabilities specified
    (II) RADEON(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4
    (II) RADEON(0): First detailed timing is preferred mode
    (II) RADEON(0): redX: 0.613 redY: 0.336 greenX: 0.311 greenY: 0.563
    (II) RADEON(0): blueX: 0.152 blueY: 0.131 whiteX: 0.315 whiteY: 0.329
    (II) RADEON(0): Manufacturer's mask: 0
    (II) RADEON(0): Supported detailed timing:
    (II) RADEON(0): clock: 68.9 MHz Image Size: 331 x 207 mm
    (II) RADEON(0): h_active: 1280 h_sync: 1301 h_sync_end 1333 h_blank_end 1408 h_border: 0
    (II) RADEON(0): v_active: 800 v_sync: 801 v_sync_end 804 v_blanking: 816 v_border: 0
    (II) RADEON(0): Unknown vendor-specific block f
    (II) RADEON(0): CT7810154WB4
    (II) RADEON(0): *=DPn
    (II) RADEON(0): EDID (in hex):
    (II) RADEON(0): 00ffffffffffff000e140b1400000000
    (II) RADEON(0): 0e110103802115780a092d9d564f9027
    (II) RADEON(0): 21505400000001010101010101010101
    (II) RADEON(0): 010101010101ea1a0080502010301520
    (II) RADEON(0): 13004bcf100000190000000f00000000
    (II) RADEON(0): 0000000000206e050f00000000fe0043
    (II) RADEON(0): 543738313031353457423420000000fe
    (II) RADEON(0): 002a3d44506e94b7ff010120202000f7
    (II) RADEON(0): EDID vendor "CPT", prod id 5131
    Dac detection success
    (II) RADEON(0): Output: VGA-0, Detected Monitor Type: 0
    (II) RADEON(0): EDID vendor "CPT", prod id 5131
    (II) RADEON(0): Printing DDC gathered Modelines:
    (II) RADEON(0): Modeline "1280x800"x0.0 68.90 1280 1301 1333 1408 800 801 804 816 -hsync -vsync (48.9 kHz)
    (II) RADEON(0): Output: LVDS, Detected Monitor Type: 2
    (II) RADEON(0): EDID data from the display on output: LVDS ----------------------
    (II) RADEON(0): Manufacturer: CPT Model: 140b Serial#: 0
    (II) RADEON(0): Year: 2007 Week: 14
    (II) RADEON(0): EDID Version: 1.3
    (II) RADEON(0): Digital Display Input
    (II) RADEON(0): Max Image Size [cm]: horiz.: 33 vert.: 21
    (II) RADEON(0): Gamma: 2.20
    (II) RADEON(0): No DPMS capabilities specified
    (II) RADEON(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4
    (II) RADEON(0): First detailed timing is preferred mode
    (II) RADEON(0): redX: 0.613 redY: 0.336 greenX: 0.311 greenY: 0.563
    (II) RADEON(0): blueX: 0.152 blueY: 0.131 whiteX: 0.315 whiteY: 0.329
    (II) RADEON(0): Manufacturer's mask: 0
    (II) RADEON(0): Supported detailed timing:
    (II) RADEON(0): clock: 68.9 MHz Image Size: 331 x 207 mm
    (II) RADEON(0): h_active: 1280 h_sync: 1301 h_sync_end 1333 h_blank_end 1408 h_border: 0
    (II) RADEON(0): v_active: 800 v_sync: 801 v_sync_end 804 v_blanking: 816 v_border: 0
    (II) RADEON(0): Unknown vendor-specific block f
    (II) RADEON(0): CT7810154WB4
    (II) RADEON(0): *=DPn
    (II) RADEON(0): EDID (in hex):
    (II) RADEON(0): 00ffffffffffff000e140b1400000000
    (II) RADEON(0): 0e110103802115780a092d9d564f9027
    (II) RADEON(0): 21505400000001010101010101010101
    (II) RADEON(0): 010101010101ea1a0080502010301520
    (II) RADEON(0): 13004bcf100000190000000f00000000
    (II) RADEON(0): 0000000000206e050f00000000fe0043
    (II) RADEON(0): 543738313031353457423420000000fe
    (II) RADEON(0): 002a3d44506e94b7ff010120202000f7
    (II) RADEON(0): EDID vendor "CPT", prod id 5131
    Dac detection success
    (II) RADEON(0): Output: VGA-0, Detected Monitor Type: 0
    (II) RADEON(0): EDID vendor "CPT", prod id 5131
    (II) RADEON(0): Printing DDC gathered Modelines:
    (II) RADEON(0): Modeline "1280x800"x0.0 68.90 1280 1301 1333 1408 800 801 804 816 -hsync -vsync (48.9 kHz)
    (II) RADEON(0): Output: LVDS, Detected Monitor Type: 2
    (II) RADEON(0): EDID data from the display on output: LVDS ----------------------
    (II) RADEON(0): Manufacturer: CPT Model: 140b Serial#: 0
    (II) RADEON(0): Year: 2007 Week: 14
    (II) RADEON(0): EDID Version: 1.3
    (II) RADEON(0): Digital Display Input
    (II) RADEON(0): Max Image Size [cm]: horiz.: 33 vert.: 21
    (II) RADEON(0): Gamma: 2.20
    (II) RADEON(0): No DPMS capabilities specified
    (II) RADEON(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4
    (II) RADEON(0): First detailed timing is preferred mode
    (II) RADEON(0): redX: 0.613 redY: 0.336 greenX: 0.311 greenY: 0.563
    (II) RADEON(0): blueX: 0.152 blueY: 0.131 whiteX: 0.315 whiteY: 0.329
    (II) RADEON(0): Manufacturer's mask: 0
    (II) RADEON(0): Supported detailed timing:
    (II) RADEON(0): clock: 68.9 MHz Image Size: 331 x 207 mm
    (II) RADEON(0): h_active: 1280 h_sync: 1301 h_sync_end 1333 h_blank_end 1408 h_border: 0
    (II) RADEON(0): v_active: 800 v_sync: 801 v_sync_end 804 v_blanking: 816 v_border: 0
    (II) RADEON(0): Unknown vendor-specific block f
    (II) RADEON(0): CT7810154WB4
    (II) RADEON(0): *=DPn
    (II) RADEON(0): EDID (in hex):
    (II) RADEON(0): 00ffffffffffff000e140b1400000000
    (II) RADEON(0): 0e110103802115780a092d9d564f9027
    (II) RADEON(0): 21505400000001010101010101010101
    (II) RADEON(0): 010101010101ea1a0080502010301520
    (II) RADEON(0): 13004bcf100000190000000f00000000
    (II) RADEON(0): 0000000000206e050f00000000fe0043
    (II) RADEON(0): 543738313031353457423420000000fe
    (II) RADEON(0): 002a3d44506e94b7ff010120202000f7
    (II) RADEON(0): EDID vendor "CPT", prod id 5131
    Dac detection success
    (II) RADEON(0): Output: VGA-0, Detected Monitor Type: 0
    (II) RADEON(0): EDID vendor "CPT", prod id 5131
    (II) RADEON(0): Printing DDC gathered Modelines:
    (II) RADEON(0): Modeline "1280x800"x0.0 68.90 1280 1301 1333 1408 800 801 804 816 -hsync -vsync (48.9 kHz)
    (II) RADEON(0): Output: LVDS, Detected Monitor Type: 2
    (II) RADEON(0): EDID data from the display on output: LVDS ----------------------
    (II) RADEON(0): Manufacturer: CPT Model: 140b Serial#: 0
    (II) RADEON(0): Year: 2007 Week: 14
    (II) RADEON(0): EDID Version: 1.3
    (II) RADEON(0): Digital Display Input
    (II) RADEON(0): Max Image Size [cm]: horiz.: 33 vert.: 21
    (II) RADEON(0): Gamma: 2.20
    (II) RADEON(0): No DPMS capabilities specified
    (II) RADEON(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4
    (II) RADEON(0): First detailed timing is preferred mode
    (II) RADEON(0): redX: 0.613 redY: 0.336 greenX: 0.311 greenY: 0.563
    (II) RADEON(0): blueX: 0.152 blueY: 0.131 whiteX: 0.315 whiteY: 0.329
    (II) RADEON(0): Manufacturer's mask: 0
    (II) RADEON(0): Supported detailed timing:
    (II) RADEON(0): clock: 68.9 MHz Image Size: 331 x 207 mm
    (II) RADEON(0): h_active: 1280 h_sync: 1301 h_sync_end 1333 h_blank_end 1408 h_border: 0
    (II) RADEON(0): v_active: 800 v_sync: 801 v_sync_end 804 v_blanking: 816 v_border: 0
    (II) RADEON(0): Unknown vendor-specific block f
    (II) RADEON(0): CT7810154WB4
    (II) RADEON(0): *=DPn
    (II) RADEON(0): EDID (in hex):
    (II) RADEON(0): 00ffffffffffff000e140b1400000000
    (II) RADEON(0): 0e110103802115780a092d9d564f9027
    (II) RADEON(0): 21505400000001010101010101010101
    (II) RADEON(0): 010101010101ea1a0080502010301520
    (II) RADEON(0): 13004bcf100000190000000f00000000
    (II) RADEON(0): 0000000000206e050f00000000fe0043
    (II) RADEON(0): 543738313031353457423420000000fe
    (II) RADEON(0): 002a3d44506e94b7ff010120202000f7
    (II) RADEON(0): EDID vendor "CPT", prod id 5131
    And my rc.conf:
    # /etc/rc.conf - Main Configuration for Arch Linux
    # LOCALIZATION
    # LOCALE: available languages can be listed with the 'locale -a' command
    # HARDWARECLOCK: set to "UTC" or "localtime"
    # USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
    # TIMEZONE: timezones are found in /usr/share/zoneinfo
    # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
    # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
    # CONSOLEMAP: found in /usr/share/kbd/consoletrans
    # USECOLOR: use ANSI color sequences in startup messages
    LOCALE="en_US.utf8"
    HARDWARECLOCK="localtime"
    USEDIRECTISA="no"
    TIMEZONE="America/Toronto"
    KEYMAP="cf"
    CONSOLEFONT=
    CONSOLEMAP=
    USECOLOR="yes"
    # HARDWARE
    # MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
    # MOD_BLACKLIST: Prevent udev from loading these modules
    # MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
    # NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
    MOD_AUTOLOAD="yes"
    #MOD_BLACKLIST=() #deprecated
    MODULES=(!pcspkr !snd_pcsp !bcm43xx !ndiswrapper loop b43 fuse)
    # Scan for LVM volume groups at startup, required if you use LVM
    USELVM="no"
    # NETWORKING
    # HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
    HOSTNAME="cipher"
    # Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
    # Interfaces to start at boot-up (in this order)
    # Declare each interface then list in INTERFACES
    # - prefix an entry in INTERFACES with a ! to disable it
    # - no hyphens in your interface names - Bash doesn't like it
    # DHCP: Set your interface to "dhcp" (eth0="dhcp")
    # Wireless: See network profiles below
    eth0="dhcp"
    INTERFACES=(lo !eth0 !wlan0)
    # Routes to start at boot-up (in this order)
    # Declare each route then list in ROUTES
    # - prefix an entry in ROUTES with a ! to disable it
    gateway="default gw 192.168.0.1"
    ROUTES=(!gateway)
    # Enable these network profiles at boot-up. These are only useful
    # if you happen to need multiple network configurations (ie, laptop users)
    # - set to 'menu' to present a menu during boot-up (dialog package required)
    # - prefix an entry with a ! to disable it
    # Network profiles are found in /etc/network.d
    # This now requires the netcfg package
    #NETWORKS=(main)
    # DAEMONS
    # Daemons to start at boot-up (in this order)
    # - prefix a daemon with a ! to disable it
    # - prefix a daemon with a @ to start it up in the background
    DAEMONS=(@openntpd @stdb @httpd @mysqld @cups @samba syslog-ng network netfs @crond alsa dbus hal fam networkmanager !gdm)
    Oh and hell, if you want to have a look on my xorg.conf:
    Section "ServerLayout"
    Identifier "X.org Configured"
    Screen 0 "Screen0" 0 0
    # InputDevice "Mouse0" "CorePointer"
    # InputDevice "Keyboard0" "CoreKeyboard"
    EndSection
    Section "Files"
    ModulePath "/usr/lib/xorg/modules"
    FontPath "/usr/share/fonts/misc"
    FontPath "/usr/share/fonts/100dpi:unscaled"
    FontPath "/usr/share/fonts/75dpi:unscaled"
    FontPath "/usr/share/fonts/TTF"
    FontPath "/usr/share/fonts/Type1"
    EndSection
    Section "ServerFlags"
    Option "AIGLX" "true"
    EndSection
    Section "Module"
    Load "xtrap"
    Load "extmod"
    Load "dbe"
    Load "glx"
    Load "dri"
    Load "drm"
    Load "freetype"
    Load "synaptics"
    EndSection
    #Section "InputDevice"
    # Identifier "Keyboard0"
    # Driver "kbd"
    # Option "XkbLayout" "ca"
    # Option "XkbVariant" "fr"
    #EndSection
    #Section "InputDevice"
    # Identifier "Mouse0"
    # Driver "mouse"
    # Option "Protocol" "auto"
    # Option "Device" "/dev/input/mice"
    # Option "ZAxisMapping" "4 5 6 7"
    #EndSection
    Section "Monitor"
    #DisplaySize 330 210 # mm
    Identifier "Monitor0"
    VendorName "CPT"
    ModelName "140b"
    EndSection
    Section "Device"
    ### Available Driver options are:-
    ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
    ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
    ### [arg]: arg optional
    #Option "NoAccel" # [<bool>]
    #Option "SWcursor" # [<bool>]
    #Option "Dac6Bit" # [<bool>]
    #Option "Dac8Bit" # [<bool>]
    #Option "BusType" # [<str>]
    #Option "CPPIOMode" # [<bool>]
    #Option "CPusecTimeout" # <i>
    #Option "AGPMode" # <i>
    #Option "AGPFastWrite" # [<bool>]
    #Option "AGPSize" # <i>
    #Option "GARTSize" # <i>
    #Option "RingSize" # <i>
    #Option "BufferSize" # <i>
    #Option "EnableDepthMoves" # [<bool>]
    #Option "EnablePageFlip" # [<bool>]
    #Option "NoBackBuffer" # [<bool>]
    #Option "DMAForXv" # [<bool>]
    #Option "FBTexPercent" # <i>
    #Option "DepthBits" # <i>
    #Option "PCIAPERSize" # <i>
    #Option "AccelDFS" # [<bool>]
    #Option "IgnoreEDID" # [<bool>]
    #Option "DisplayPriority" # [<str>]
    #Option "PanelSize" # [<str>]
    #Option "ForceMinDotClock" # <freq>
    #Option "ColorTiling" # [<bool>]
    #Option "VideoKey" # <i>
    #Option "RageTheatreCrystal" # <i>
    #Option "RageTheatreTunerPort" # <i>
    #Option "RageTheatreCompositePort" # <i>
    #Option "RageTheatreSVideoPort" # <i>
    #Option "TunerType" # <i>
    #Option "RageTheatreMicrocPath" # <str>
    #Option "RageTheatreMicrocType" # <str>
    #Option "ScalerWidth" # <i>
    #Option "RenderAccel" # [<bool>]
    #Option "SubPixelOrder" # [<str>]
    #Option "ShowCache" # [<bool>]
    #Option "DynamicClocks" # [<bool>]
    #Option "VGAAccess" # [<bool>]
    #Option "ReverseDDC" # [<bool>]
    #Option "LVDSProbePLL" # [<bool>]
    #Option "AccelMethod" # <str>
    #Option "DRI" # [<bool>]
    #Option "ConnectorTable" # <str>
    #Option "DefaultConnectorTable" # [<bool>]
    #Option "DefaultTMDSPLL" # [<bool>]
    #Option "TVDACLoadDetect" # [<bool>]
    #Option "ForceTVOut" # [<bool>]
    #Option "TVStandard" # <str>
    #Option "IgnoreLidStatus" # [<bool>]
    #Option "DefaultTVDACAdj" # [<bool>]
    #Option "Int10" # [<bool>]
    #Option "EXAVSync" # [<bool>]
    #Option "ATOMTVOut" # [<bool>]
    Identifier "Card0"
    Driver "radeon"
    VendorName "ATI Technologies Inc"
    BoardName "Radeon Mobility X1400"
    BusID "PCI:1:0:0"
    Option "XAANoOffscreenPixmaps" "true"
    Option "DRI" "true"
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "Monitor0"
    # SubSection "Display"
    # Viewport 0 0
    # Depth 1
    # EndSubSection
    # SubSection "Display"
    # Viewport 0 0
    # Depth 4
    # EndSubSection
    # SubSection "Display"
    # Viewport 0 0
    # Depth 8
    # EndSubSection
    # SubSection "Display"
    # Viewport 0 0
    # Depth 15
    # EndSubSection
    # SubSection "Display"
    # Viewport 0 0
    # Depth 16
    # EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 24
    EndSubSection
    EndSection
    Section "Extensions"
    Option "Composite" "Enable"
    EndSection
    Section "DRI"
    Group "video"
    Mode 0666
    EndSection
    Any bit of help is appreciated.

  • [SOLVED] tv_grab_nl_py works with python 2.6.5, fails on 3.1.2

    Hi All,
    I have updated my mediacenter. Now tv_grab_nl_py does not work anymore:
    [cedric@tv ~]$ tv_grab_nl_py --output ~/listings.xml --fast
    File "/usr/bin/tv_grab_nl_py", line 341
    print 'tv_grab_nl_py: A grabber that grabs tvguide data from tvgids.nl\n'
    ^
    SyntaxError: invalid syntax
    [cedric@tv ~]$
    the version of python on the mediacenter (running arch linux):
    [cedric@tv ~]$ python
    Python 3.1.2 (r312:79147, Oct 4 2010, 12:35:40)
    [GCC 4.5.1] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>>
    I have copied the file to my laptop, there it looks like it's working:
    ./tv_grab_nl_py --output ~/listings.xml --fast
    Config file /home/cedric/.xmltv/tv_grab_nl_py.conf not found.
    Re-run me with the --configure flag.
    cedric@laptop:~$
    the version of python on my laptop (running arch linux):
    cedric@laptop:~$ python
    Python 2.6.5 (r265:79063, Apr 1 2010, 05:22:20)
    [GCC 4.4.3 20100316 (prerelease)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>>
    the script I'm trying to run:
    [cedric@tv ~]$ cat tv_grab_nl_py
    #!/usr/bin/env python
    # $LastChangedDate: 2009-11-14 10:06:41 +0100 (Sat, 14 Nov 2009) $
    # $Rev: 104 $
    # $Author: pauldebruin $
    SYNOPSIS
    tv_grab_nl_py is a python script that trawls tvgids.nl for TV
    programming information and outputs it in XMLTV-formatted output (see
    http://membled.com/work/apps/xmltv). Users of MythTV
    (http://www.mythtv.org) will appreciate the output generated by this
    grabber, because it fills the category fields, i.e. colors in the EPG,
    and has logos for most channels automagically available. Check the
    website below for screenshots. The newest version of this script can be
    found here:
    http://code.google.com/p/tvgrabnlpy/
    USAGE
    Check the web site above and/or run script with --help and start from there
    HISTORY
    tv_grab_nl_py used to be called tv_grab_nl_pdb, first released on
    2003/07/09. The name change was necessary because more and more people
    are actively contributing to this script and I always disliked using my
    initials (I was just too lazy to change it). At the same time I switched
    from using CVS to SVN and as a result the version numbering scheme has
    changed. The lastest official release of tv_grab_nl_pdb is 0.48. The
    first official release of tv_grab_nl_py is 6.
    QUESTIONS
    Questions (and patches) are welcome at: paul at pwdebruin dot net.
    IMPORTANT NOTES
    If you were using tv_grab_nl from the XMLTV bundle then enable the
    compat flag or use the --compat command-line option. Otherwise, the
    xmltvid's are wrong and you will not see any new data in MythTV.
    CONTRIBUTORS
    Main author: Paul de Bruin (paul at pwdebruin dot net)
    Michel van der Laan made available his extensive collection of
    high-quality logos that is used by this script.
    Michael Heus has taken the effort to further enhance this script so that
    it now also includes:
    - Credit info: directors, actors, presenters and writers
    - removal of programs that are actually just groupings/broadcasters
    (e.g. "KETNET", "Wild Friday", "Z@pp")
    - Star-rating for programs tipped by tvgids.nl
    - Black&White, Stereo and URL info
    - Better detection of Movies
    - and much, much more...
    Several other people have provided feedback and patches (these are the
    people I could find in my email archive, if you are missing from this
    list let me know):
    Huub Bouma, Roy van der Kuil, Remco Rotteveel, Mark Wormgoor, Dennis van
    Onselen, Hugo van der Kooij, Han Holl, Ian Mcdonald, Udo van den Heuvel.
    # Modules we need
    import re, urllib2, getopt, sys
    import time, random
    import htmlentitydefs, os, os.path, pickle
    from string import replace, split, strip
    from threading import Thread
    from xml.sax import saxutils
    # Extra check for the datetime module
    try:
    import datetime
    except:
    sys.stderr.write('This script needs the datetime module that was introduced in Python version 2.3.\n')
    sys.stderr.write('You are running:\n')
    sys.stderr.write('%s\n' % sys.version)
    sys.exit(1)
    # XXX: fix to prevent crashes in Snow Leopard [Robert Klep]
    if sys.platform == 'darwin' and sys.version_info[:3] == (2, 6, 1):
    try:
    urllib2.urlopen('http://localhost.localdomain')
    except:
    pass
    # do extra debug stuff
    debug = 1
    try:
    import redirect
    except:
    debug = 0
    pass
    # globals
    # compile only one time
    r_entity = re.compile(r'&(#x[0-9A-Fa-f]+|#[0-9]+|[A-Za-z]+);')
    tvgids = 'http://www.tvgids.nl/'
    uitgebreid_zoeken = tvgids + 'zoeken/'
    # how many seconds to wait before we timeout on a
    # url fetch, 10 seconds seems reasonable
    global_timeout = 10
    # Wait a random number of seconds between each page fetch.
    # We want to be nice and not hammer tvgids.nl (these are the
    # friendly people that provide our data...).
    # Also, it appears tvgids.nl throttles its output.
    # So there, there is not point in lowering these numbers, if you
    # are in a hurry, use the (default) fast mode.
    nice_time = [1, 2]
    # Maximum length in minutes of gaps/overlaps between programs to correct
    max_overlap = 10
    # Strategy to use for correcting overlapping prgramming:
    # 'average' = use average of stop and start of next program
    # 'stop' = keep stop time of current program and adjust start time of next program accordingly
    # 'start' = keep start time of next program and adjust stop of current program accordingly
    # 'none' = do not use any strategy and see what happens
    overlap_strategy = 'average'
    # Experimental strategy for clumping overlapping programming, all programs that overlap more
    # than max_overlap minutes, but less than the length of the shortest program are clumped
    # together. Highly experimental and disabled for now.
    do_clump = False
    # Create a category translation dictionary
    # Look in mythtv/themes/blue/ui.xml for all category names
    # The keys are the categories used by tvgids.nl (lowercase please)
    cattrans = { 'amusement' : 'Talk',
    'animatie' : 'Animated',
    'comedy' : 'Comedy',
    'documentaire' : 'Documentary',
    'educatief' : 'Educational',
    'erotiek' : 'Adult',
    'film' : 'Film',
    'muziek' : 'Art/Music',
    'informatief' : 'Educational',
    'jeugd' : 'Children',
    'kunst/cultuur' : 'Arts/Culture',
    'misdaad' : 'Crime/Mystery',
    'muziek' : 'Music',
    'natuur' : 'Science/Nature',
    'nieuws/actualiteiten' : 'News',
    'overige' : 'Unknown',
    'religieus' : 'Religion',
    'serie/soap' : 'Drama',
    'sport' : 'Sports',
    'theater' : 'Arts/Culture',
    'wetenschap' : 'Science/Nature'}
    # Create a role translation dictionary for the xmltv credits part
    # The keys are the roles used by tvgids.nl (lowercase please)
    roletrans = {'regie' : 'director',
    'acteurs' : 'actor',
    'presentatie' : 'presenter',
    'scenario' : 'writer'}
    # We have two sources of logos, the first provides the nice ones, but is not
    # complete. We use the tvgids logos to fill the missing bits.
    logo_provider = [ 'http://visualisation.tudelft.nl/~paul/logos/gif/64x64/',
    'http://static.tvgids.nl/gfx/zenders/' ]
    logo_names = {
    1 : [0, 'ned1'],
    2 : [0, 'ned2'],
    3 : [0, 'ned3'],
    4 : [0, 'rtl4'],
    5 : [0, 'een'],
    6 : [0, 'canvas_color'],
    7 : [0, 'bbc1'],
    8 : [0, 'bbc2'],
    9 : [0,'ard'],
    10 : [0,'zdf'],
    11 : [1, 'rtl'],
    12 : [0, 'wdr'],
    13 : [1, 'ndr'],
    14 : [1, 'srsudwest'],
    15 : [1, 'rtbf1'],
    16 : [1, 'rtbf2'],
    17 : [0, 'tv5'],
    18 : [0, 'ngc'],
    19 : [1, 'eurosport'],
    20 : [1, 'tcm'],
    21 : [1, 'cartoonnetwork'],
    24 : [0, 'canal+red'],
    25 : [0, 'mtv-color'],
    26 : [0, 'cnn'],
    27 : [0, 'rai'],
    28 : [1, 'sat1'],
    29 : [0, 'discover-spacey'],
    31 : [0, 'rtl5'],
    32 : [1, 'trt'],
    34 : [0, 'veronica'],
    35 : [0, 'tmf'],
    36 : [0, 'sbs6'],
    37 : [0, 'net5'],
    38 : [1, 'arte'],
    39 : [0, 'canal+blue'],
    40 : [0, 'at5'],
    46 : [0, 'rtl7'],
    49 : [1, 'vtm'],
    50 : [1, '3sat'],
    58 : [1, 'pro7'],
    59 : [1, 'kanaal2'],
    60 : [1, 'vt4'],
    65 : [0, 'animal-planet'],
    73 : [1, 'mezzo'],
    86 : [0, 'bbc-world'],
    87 : [1, 'tve'],
    89 : [1, 'nick'],
    90 : [1, 'bvn'],
    91 : [0, 'comedy_central'],
    92 : [0, 'rtl8'],
    99 : [1, 'sport1_1'],
    100 : [0, 'rtvu'],
    101 : [0, 'tvwest'],
    102 : [0, 'tvrijnmond'],
    103 : [1, 'tvnoordholland'],
    104 : [1, 'bbcprime'],
    105 : [1, 'spiceplatinum'],
    107 : [0, 'canal+yellow'],
    108 : [0, 'tvnoord'],
    109 : [0, 'omropfryslan'],
    114 : [0, 'omroepbrabant']}
    # A selection of user agents we will impersonate, in an attempt to be less
    # conspicuous to the tvgids.nl police.
    user_agents = [ 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)',
    'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9',
    'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)',
    'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7',
    'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)',
    'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.9) Gecko/20071105 Firefox/2.0.0.9',
    'Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9',
    'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.8) Gecko/20071022 Ubuntu/7.10 (gutsy) Firefox/2.0.0.8'
    # Work in progress, the idea is to cache program categories and
    # descriptions to eliminate a lot of page fetches from tvgids.nl
    # for programs that do not have interesting/changing descriptions
    class ProgramCache:
    A cache to hold program name and category info.
    TVgids stores the detail for each program on a separate URL with an
    (apparently unique) ID. This cache stores the fetched info with the ID.
    New fetches will use the cached info instead of doing an (expensive)
    page fetch.
    def __init__(self, filename=None):
    Create a new ProgramCache object, optionally from file
    # where we store our info
    self.filename = filename
    if filename == None:
    self.pdict = {}
    else:
    if os.path.isfile(filename):
    self.load(filename)
    else:
    self.pdict = {}
    def load(self, filename):
    Loads a pickled cache dict from file
    try:
    self.pdict = pickle.load(open(filename,'r'))
    except:
    sys.stderr.write('Error loading cache file: %s (possibly corrupt)' % filename)
    sys.exit(2)
    def dump(self, filename):
    Dumps a pickled cache, and makes sure it is valid
    if os.access(filename, os.F_OK):
    try:
    os.remove(filename)
    except:
    sys.stderr.write('Cannot remove %s, check permissions' % filename)
    pickle.dump(self.pdict, open(filename+'.tmp', 'w'))
    os.rename(filename+'.tmp', filename)
    def query(self, program_id):
    Updates/gets/whatever.
    try:
    return self.pdict[program_id]
    except:
    return None
    def add(self, program):
    Adds a program
    self.pdict[program['ID']] = program
    def clear(self):
    Clears the cache (i.e. empties it)
    self.pdict = {}
    def clean(self):
    Removes all cached programming before today.
    Also removes erroneously cached programming.
    now = time.localtime()
    dnow = datetime.datetime(now[0],now[1],now[2])
    for key in self.pdict.keys():
    try:
    if self.pdict[key]['stop-time'] < dnow or self.pdict[key]['name'].lower() == 'onbekend':
    del self.pdict[key]
    except:
    pass
    def usage():
    print 'tv_grab_nl_py: A grabber that grabs tvguide data from tvgids.nl\n'
    print 'and stores it in XMLTV-combatible format.\n'
    print 'Usage:'
    print '--help, -h = print this info'
    print '--configure = create configfile (overwrites existing file)'
    print '--config-file = name of the configuration file (default = ~/.xmltv/tv_grab_py.conf'
    print '--capabilities = xmltv required option'
    print '--desc-length = maximum allowed length of programme descriptions in bytes.'
    print '--description = prints a short description of the grabber'
    print '--output = file where to put the output'
    print '--days = # number of days to grab'
    print '--preferredmethod = returns the preferred method to be called'
    print '--fast = do not grab descriptions of programming'
    print '--slow = grab descriptions of programming'
    print '--quiet = suppress all output'
    print '--compat = append tvgids.nl to the xmltv id (use this if you were using tv_grab_nl)'
    print '--logos 0/1 = insert urls to channel icons (mythfilldatabase will then use these)'
    print '--nocattrans = do not translate the grabbed genres into MythTV-genres'
    print '--cache = cache descriptions and use the file to store'
    print '--clean_cache = clean the cache file before fetching'
    print '--clear_cache = empties the cache file before fetching data'
    print '--slowdays = grab slowdays initial days and the rest in fast mode'
    print '--max_overlap = maximum length of overlap between programming to correct [minutes]'
    print '--overlap_strategy = what strategy to use to correct overlaps (check top of source code)'
    def filter_line_identity(m, defs=htmlentitydefs.entitydefs):
    # callback: translate one entity to its ISO Latin value
    k = m.group(1)
    if k.startswith("#") and k[1:] in xrange(256):
    return chr(int(k[1:]))
    try:
    return defs[k]
    except KeyError:
    return m.group(0) # use as is
    def filter_line(s):
    Removes unwanted stuff in strings (adapted from tv_grab_be)
    # do the latin1 stuff
    s = r_entity.sub(filter_line_identity, s)
    s = replace(s,'&nbsp;',' ')
    # Ik vermoed dat de volgende drie regels overbodig zijn, maar ze doen
    # niet veel kwaad -- Han Holl
    s = replace(s,'\r',' ')
    x = re.compile('(<.*?>)') # Udo
    s = x.sub('', s) #Udo
    s = replace(s, '~Q', "'")
    s = replace(s, '~R', "'")
    # Hmm, not sure if I understand this. Without it, mythfilldatabase barfs
    # on program names like "Steinbrecher &..."
    # We most create valid XML -- Han Holl
    s = saxutils.escape(s)
    return s
    def calc_timezone(t):
    Takes a time from tvgids.nl and formats it with all the required
    timezone conversions.
    in: '20050429075000'
    out:'20050429075000 (CET|CEST)'
    Until I have figured out how to correctly do timezoning in python this method
    will bork if you are not in a zone that has the same DST rules as 'Europe/Amsterdam'.
    year = int(t[0:4])
    month = int(t[4:6])
    day = int(t[6:8])
    hour = int(t[8:10])
    minute = int(t[10:12])
    #td = {'CET': '+0100', 'CEST': '+0200'}
    #td = {'CET': '+0100', 'CEST': '+0200', 'W. Europe Standard Time' : '+0100', 'West-Europa (standaardtijd)' : '+0100'}
    td = {0 : '+0100', 1 : '+0200'}
    pt = time.mktime((year,month,day,hour,minute,0,0,0,-1))
    timezone=''
    try:
    #timezone = time.tzname[(time.localtime(pt))[-1]]
    timezone = (time.localtime(pt))[-1]
    except:
    sys.stderr.write('Cannot convert time to timezone')
    return t+' %s' % td[timezone]
    def format_timezone(td):
    Given a datetime object, returns a string in XMLTV format
    tstr = td.strftime('%Y%m%d%H%M00')
    return calc_timezone(tstr)
    def get_page_internal(url, quiet=0):
    Retrieves the url and returns a string with the contents.
    Optionally, returns None if processing takes longer than
    the specified number of timeout seconds.
    txtdata = None
    txtheaders = {'Keep-Alive' : '300',
    'User-Agent' : user_agents[random.randint(0, len(user_agents)-1)] }
    try:
    #fp = urllib2.urlopen(url)
    rurl = urllib2.Request(url, txtdata, txtheaders)
    fp = urllib2.urlopen(rurl)
    lines = fp.readlines()
    page = "".join(lines)
    return page
    except:
    if not quiet:
    sys.stderr.write('Cannot open url: %s\n' % url)
    return None
    class FetchURL(Thread):
    A simple thread to fetch a url with a timeout
    def __init__ (self, url, quiet=0):
    Thread.__init__(self)
    self.quiet = quiet
    self.url = url
    self.result = None
    def run(self):
    self.result = get_page_internal(self.url, self.quiet)
    def get_page(url, quiet=0):
    Wrapper around get_page_internal to catch the
    timeout exception
    try:
    fu = FetchURL(url, quiet)
    fu.start()
    fu.join(global_timeout)
    return fu.result
    except:
    if not quiet:
    sys.stderr.write('get_page timed out on (>%s s): %s\n' % (global_timeout, url))
    return None
    def get_channels(file, quiet=0):
    Get a list of all available channels and store these
    in a file.
    # store channels in a dict
    channels = {}
    # tvgids stores several instances of channels, we want to
    # find all the possibile channels
    channel_get = re.compile('<optgroup label=.*?>(.*?)</optgroup>', re.DOTALL)
    # this is how we will find a (number, channel) instance
    channel_re = re.compile('<option value="([0-9]+)" >(.*?)</option>', re.DOTALL)
    # this is where we will try to find our channel list
    total = get_page(uitgebreid_zoeken, quiet)
    if total == None:
    return
    # get a list of match objects of all the <select blah station>
    stations = channel_get.finditer(total)
    # and create a dict of number, channel_name pairs
    # we do this this way because several instances of the
    # channel list are stored in the url and not all of the
    # instances have all the channels, this way we get them all.
    for station in stations:
    m = channel_re.finditer(station.group(0))
    for p in m:
    try:
    a = int(p.group(1))
    b = filter_line(p.group(2))
    channels[a] = b
    except:
    sys.stderr.write('Oops, [%s,%s] does not look like a valid channel, skipping it...\n' % (p.group(1),p.group(2)))
    # sort on channel number (arbitrary but who cares)
    keys = channels.keys()
    keys.sort()
    # and create a file with the channels
    f = open(file,'w')
    for k in keys:
    f.write("%s %s\n" % (k, channels[k]))
    f.close()
    def get_channel_all_days(channel, days, quiet=0):
    Get all available days of programming for channel number
    The output is a list of programming in order where each row
    contains a dictionary with program information.
    now = datetime.datetime.now()
    programs = []
    # Tvgids shows programs per channel per day, so we loop over the number of days
    # we are required to grab
    for offset in range(0, days):
    channel_url = 'http://www.tvgids.nl/zoeken/?d=%i&z=%s' % (offset, channel)
    # For historic purposes, the old style url that gave us a full week in advance:
    # channel_url = 'http://www.tvgids.nl/zoeken/?trefwoord=Titel+of+trefwoord&interval=0&timeslot='+\
    # '&station=%s&periode=%i&genre=&order=0' % (channel,days-1)
    # Sniff, we miss you...
    if offset > 0:
    time.sleep(random.randint(nice_time[0], nice_time[1]))
    # get the raw programming for the day
    total = get_page(channel_url, quiet)
    if total == None:
    return programs
    # Setup a number of regexps
    # checktitle will match the title row in H2 tags of the daily overview page, e.g.
    # <h2>zondag 19 oktober 2008</h2>
    checktitle = re.compile('<h2>(.*?)</h2>',re.DOTALL)
    # getrow will locate each row with program details
    getrow = re.compile('<a href="/programma/(.*?)</a>',re.DOTALL)
    # parserow matches the required program info, with groups:
    # 1 = program ID
    # 2 = broadcast times
    # 3 = program name
    parserow = re.compile('(.*?)/.*<span class="time">(.*?)</span>.*<span class="title">(.*?)</span>', re.DOTALL)
    # normal begin and end times
    times = re.compile('([0-9]+:[0-9]+) - ([0-9]+:[0-9]+)?')
    # Get the day of month listed on the page as well as the expected date we are grabbing and compare these.
    # If these do not match, we skip parsing the programs on the page and issue a warning.
    #dayno = int(checkday.search(total).group(1))
    title = checktitle.search(total)
    if title:
    title = title.group(1)
    dayno = title.split()[1]
    else:
    sys.stderr.write('\nOops, there was a problem with page %s. Skipping it...\n' % (channel_url))
    continue
    expected = now + datetime.timedelta(days=offset)
    if (not dayno.isdigit() or int(dayno) != expected.day):
    sys.stderr.write('\nOops, did not expect page %s to list programs for "%s", skipping it...\n' % (channel_url,title))
    continue
    # and find relevant programming info
    allrows = getrow.finditer(total)
    for r in allrows:
    detail = parserow.search(r.group(1))
    if detail != None:
    # default times
    start_time = None
    stop_time = None
    # parse for begin and end times
    t = times.search(detail.group(2))
    if t != None:
    start_time = t.group(1)
    stop_time = t.group(2)
    program_url = 'http://www.tvgids.nl/programma/' + detail.group(1) + '/'
    program_name = detail.group(3)
    # store time, name and detail url in a dictionary
    tdict = {}
    tdict['start'] = start_time
    tdict['stop'] = stop_time
    tdict['name'] = program_name
    if tdict['name'] == '':
    tdict['name'] = 'onbekend'
    tdict['url'] = program_url
    tdict['ID'] = detail.group(1)
    tdict['offset'] = offset
    #Add star rating if tipped by tvgids.nl
    tdict['star-rating'] = '';
    if r.group(1).find('Tip') != -1:
    tdict['star-rating'] = '4/5'
    # and append the program to the list of programs
    programs.append(tdict)
    # done
    return programs
    def make_daytime(time_string, offset=0, cutoff='00:00', stoptime=False):
    Given a string '11:35' and an offset from today,
    return a datetime object. The cuttoff specifies the point where the
    new day starts.
    Examples:
    In [2]:make_daytime('11:34',0)
    Out[2]:datetime.datetime(2006, 8, 3, 11, 34)
    In [3]:make_daytime('11:34',1)
    Out[3]:datetime.datetime(2006, 8, 4, 11, 34)
    In [7]:make_daytime('11:34',0,'12:00')
    Out[7]:datetime.datetime(2006, 8, 4, 11, 34)
    In [4]:make_daytime('11:34',0,'11:34',False)
    Out[4]:datetime.datetime(2006, 8, 3, 11, 34)
    In [5]:make_daytime('11:34',0,'11:34',True)
    Out[5]:datetime.datetime(2006, 8, 4, 11, 34)
    h,m = [int(x) for x in time_string.split(':')];
    hm = int(time_string.replace(':',''))
    chm = int(cutoff.replace(':',''))
    # check for the cutoff, if the time is before the cutoff then
    # add a day
    extra_day = 0
    if (hm < chm) or (stoptime==True and hm == chm):
    extra_day = 1
    # and create a datetime object, DST is handled at a later point
    pt = time.localtime()
    dt = datetime.datetime(pt[0],pt[1],pt[2],h,m)
    dt = dt + datetime.timedelta(offset+extra_day)
    return dt
    def correct_times(programs, quiet=0):
    Parse a list of programs as generated by get_channel_all_days() and
    convert begin and end times to xmltv compatible times in datetime objects.
    if programs == []:
    return programs
    # the start time of programming for this day, times *before* this time are
    # assumed to be on the next day
    day_start_time = '06:00'
    # initialise using the start time of the first program on this day
    if programs[0]['start'] != None:
    day_start_time = programs[0]['start']
    for program in programs:
    if program['start'] == program['stop']:
    program['stop'] = None
    # convert the times
    if program['start'] != None:
    program['start-time'] = make_daytime(program['start'], program['offset'], day_start_time)
    else:
    program['start-time'] = None
    if program['stop'] != None:
    program['stop-time'] = make_daytime(program['stop'], program['offset'], day_start_time, stoptime=True)
    # extra correction, needed because the stop time of a program may be on the next day, after the
    # day cutoff. For example:
    # 06:00 - 23:40 Long Program
    # 23:40 - 00:10 Lala
    # 00:10 - 08:00 Wawa
    # This puts the end date of Wawa on the current, instead of the next day. There is no way to detect
    # this with a single cutoff in make_daytime. Therefore, check if there is a day difference between
    # start and stop dates and correct if necessary.
    if program['start-time'] != None:
    # make two dates
    start = program['start-time']
    stop = program['stop-time']
    single_day = datetime.timedelta(1)
    startdate = datetime.datetime(start.year,start.month,start.day)
    stopdate = datetime.datetime(stop.year,stop.month,stop.day)
    if startdate - stopdate == single_day:
    program['stop-time'] = program['stop-time'] + single_day
    else:
    program['stop-time'] = None
    def parse_programs(programs, offset=0, quiet=0):
    Parse a list of programs as generated by get_channel_all_days() and
    convert begin and end times to xmltv compatible times.
    # good programs
    good_programs = []
    # calculate absolute start and stop times
    correct_times(programs, quiet)
    # next, correct for missing end time and copy over all good programming to the
    # good_programs list
    for i in range(len(programs)):
    # Try to correct missing end time by taking start time from next program on schedule
    if (programs[i]['stop-time'] == None and i < len(programs)-1):
    if not quiet:
    sys.stderr.write('Oops, "%s" has no end time. Trying to fix...\n' % programs[i]['name'])
    programs[i]['stop-time'] = programs[i+1]['start-time']
    # The common case: start and end times are present and are not
    # equal to each other (yes, this can happen)
    if programs[i]['start-time'] != None and \
    programs[i]['stop-time'] != None and \
    programs[i]['start-time'] != programs[i]['stop-time']:
    good_programs.append(programs[i])
    # Han Holl: try to exclude programs that stop before they begin
    for i in range(len(good_programs)-1,-1,-1):
    if good_programs[i]['stop-time'] <= good_programs[i]['start-time']:
    if not quiet:
    sys.stderr.write('Deleting invalid stop/start time: %s\n' % good_programs[i]['name'])
    del good_programs[i]
    # Try to exclude programs that only identify a group or broadcaster and have overlapping start/end times with
    # the actual programs
    for i in range(len(good_programs)-2,-1,-1):
    if good_programs[i]['start-time'] <= good_programs[i+1]['start-time'] and \
    good_programs[i]['stop-time'] >= good_programs[i+1]['stop-time']:
    if not quiet:
    sys.stderr.write('Deleting grouping/broadcaster: %s\n' % good_programs[i]['name'])
    del good_programs[i]
    for i in range(len(good_programs)-1):
    # PdB: Fix tvgids start-before-end x minute interval overlap. An overlap (positive or
    # negative) is halved and each half is assigned to the adjacent programmes. The maximum
    # overlap length between programming is set by the global variable 'max_overlap' and is
    # default 10 minutes. Examples:
    # Positive overlap (= overlap in programming):
    # 10:55 - 12:00 Lala
    # 11:55 - 12:20 Wawa
    # is transformed in:
    # 10:55 - 11.57 Lala
    # 11:57 - 12:20 Wawa
    # Negative overlap (= gap in programming):
    # 10:55 - 11:50 Lala
    # 12:00 - 12:20 Wawa
    # is transformed in:
    # 10:55 - 11.55 Lala
    # 11:55 - 12:20 Wawa
    stop = good_programs[i]['stop-time']
    start = good_programs[i+1]['start-time']
    dt = stop-start
    avg = start + dt / 2
    overlap = 24*60*60*dt.days + dt.seconds
    # check for the size of the overlap
    if 0 < abs(overlap) <= max_overlap*60:
    if not quiet:
    if overlap > 0:
    sys.stderr.write('"%s" and "%s" overlap %s minutes. Adjusting times.\n' % \
    (good_programs[i]['name'],good_programs[i+1]['name'],overlap / 60))
    else:
    sys.stderr.write('"%s" and "%s" have gap of %s minutes. Adjusting times.\n' % \
    (good_programs[i]['name'],good_programs[i+1]['name'],abs(overlap) / 60))
    # stop-time of previous program wins
    if overlap_strategy == 'stop':
    good_programs[i+1]['start-time'] = good_programs[i]['stop-time']
    # start-time of next program wins
    elif overlap_strategy == 'start':
    good_programs[i]['stop-time'] = good_programs[i+1]['start-time']
    # average the difference
    elif overlap_strategy == 'average':
    good_programs[i]['stop-time'] = avg
    good_programs[i+1]['start-time'] = avg
    # leave as is
    else:
    pass
    # Experimental strategy to make sure programming does not disappear. All programs that overlap more
    # than the maximum overlap length, but less than the shortest length of the two programs are
    # clumped.
    if do_clump:
    for i in range(len(good_programs)-1):
    stop = good_programs[i]['stop-time']
    start = good_programs[i+1]['start-time']
    dt = stop-start
    overlap = 24*60*60*dt.days + dt.seconds
    length0 = good_programs[i]['stop-time'] - good_programs[i]['start-time']
    length1 = good_programs[i+1]['stop-time'] - good_programs[i+1]['start-time']
    l0 = length0.days*24*60*60 + length0.seconds
    l1 = length1.days*24*60*60 + length0.seconds
    if abs(overlap) >= max_overlap*60 <= min(l0,l1)*60 and \
    not good_programs[i].has_key('clumpidx') and \
    not good_programs[i+1].has_key('clumpidx'):
    good_programs[i]['clumpidx'] = '0/2'
    good_programs[i+1]['clumpidx'] = '1/2'
    good_programs[i]['stop-time'] = good_programs[i+1]['stop-time']
    good_programs[i+1]['start-time'] = good_programs[i]['start-time']
    # done, nothing to see here, please move on
    return good_programs
    def get_descriptions(programs, program_cache=None, nocattrans=0, quiet=0, slowdays=0):
    Given a list of programs, from get_channel, retrieve program information
    # This regexp tries to find details such as Genre, Acteurs, Jaar van Premiere etc.
    detail = re.compile('<li>.*?<strong>(.*?):</strong>.*?<br />(.*?)</li>', re.DOTALL)
    # These regexps find the description area, the program type and descriptive text
    description = re.compile('<div class="description">.*?<div class="text"(.*?)<div class="clearer"></div>',re.DOTALL)
    descrtype = re.compile('<div class="type">(.*?)</div>',re.DOTALL)
    descrline = re.compile('<p>(.*?)</p>',re.DOTALL)
    # randomize detail requests
    nprograms = len(programs)
    fetch_order = range(0,nprograms)
    random.shuffle(fetch_order)
    counter = 0
    for i in fetch_order:
    counter += 1
    if programs[i]['offset'] >= slowdays:
    continue
    if not quiet:
    sys.stderr.write('\n(%3.0f%%) %s: %s ' % (100*float(counter)/float(nprograms), i, programs[i]['name']))
    # check the cache for this program's ID
    cached_program = program_cache.query(programs[i]['ID'])
    if (cached_program != None):
    if not quiet:
    sys.stderr.write(' [cached]')
    # copy the cached information, except the start/end times, rating and clumping,
    # these may have changed.
    tstart = programs[i]['start-time']
    tstop = programs[i]['stop-time']
    rating = programs[i]['star-rating']
    try:
    clump = programs[i]['clumpidx']
    except:
    clump = False
    programs[i] = cached_program
    programs[i]['start-time'] = tstart
    programs[i]['stop-time'] = tstop
    programs[i]['star-rating'] = rating
    if clump:
    programs[i]['clumpidx'] = clump
    continue
    else:
    # be nice to tvgids.nl
    time.sleep(random.randint(nice_time[0], nice_time[1]))
    # get the details page, and get all the detail nodes
    descriptions = ()
    details = ()
    try:
    if not quiet:
    sys.stderr.write(' [normal fetch]')
    total = get_page(programs[i]['url'])
    details = detail.finditer(total)
    descrspan = description.search(total);
    descriptions = descrline.finditer(descrspan.group(1))
    except:
    # if we cannot find the description page,
    # go to next in the loop
    if not quiet:
    sys.stderr.write(' [fetch failed or timed out]')
    continue
    # define containers
    programs[i]['credits'] = {}
    programs[i]['video'] = {}
    # now parse the details
    line_nr = 1;
    # First, we try to find the program type in the description section.
    # Note that this is not the same as the generic genres (these are searched later on), but a more descriptive one like "Culinair programma"
    # If present, we store this as first part of the regular description:
    programs[i]['detail1'] = descrtype.search(descrspan.group(1)).group(1).capitalize()
    if programs[i]['detail1'] != '':
    line_nr = line_nr + 1
    # Secondly, we add one or more lines of the program description that are present.
    for descript in descriptions:
    d_str = 'detail' + str(line_nr)
    programs[i][d_str] = descript.group(1)
    # Remove sponsored link from description if present.
    sponsor_pos = programs[i][d_str].rfind('<i>Gesponsorde link:</i>')
    if sponsor_pos > 0:
    programs[i][d_str] = programs[i][d_str][0:sponsor_pos]
    programs[i][d_str] = filter_line(programs[i][d_str]).strip()
    line_nr = line_nr + 1
    # Finally, we check out all program details. These are generically denoted as:
    # <li><strong>(TYPE):</strong><br />(CONTENT)</li>
    # Some examples:
    # <li><strong>Genre:</strong><br />16 oktober 2008</li>
    # <li><strong>Genre:</strong><br />Amusement</li>
    for d in details:
    type = d.group(1).strip().lower()
    content_asis = d.group(2).strip()
    content = filter_line(content_asis).strip()
    if content == '':
    continue
    elif type == 'genre':
    # Fix detection of movies based on description as tvgids.nl sometimes
    # categorises a movie as e.g. "Komedie", "Misdaadkomedie", "Detectivefilm".
    genre = content;
    if (programs[i]['detail1'].lower().find('film') != -1 \
    or programs[i]['detail1'].lower().find('komedie') != -1)\
    and programs[i]['detail1'].lower().find('tekenfilm') == -1 \
    and programs[i]['detail1'].lower().find('animatiekomedie') == -1 \
    and programs[i]['detail1'].lower().find('filmpje') == -1:
    genre = 'film'
    if nocattrans:
    programs[i]['genre'] = genre.title()
    else:
    try:
    programs[i]['genre'] = cattrans[genre.lower()]
    except:
    programs[i]['genre'] = ''
    # Parse persons and their roles for credit info
    elif roletrans.has_key(type):
    programs[i]['credits'][roletrans[type]] = []
    persons = content_asis.split(',');
    for name in persons:
    if name.find(':') != -1:
    name = name.split(':')[1]
    if name.find('-') != -1:
    name = name.split('-')[0]
    if name.find('e.a') != -1:
    name = name.split('e.a')[0]
    programs[i]['credits'][roletrans[type]].append(filter_line(name.strip()))
    elif type == 'bijzonderheden':
    if content.find('Breedbeeld') != -1:
    programs[i]['video']['breedbeeld'] = 1
    if content.find('Zwart') != -1:
    programs[i]['video']['blackwhite'] = 1
    if content.find('Teletekst') != -1:
    programs[i]['teletekst'] = 1
    if content.find('Stereo') != -1:
    programs[i]['stereo'] = 1
    elif type == 'url':
    programs[i]['infourl'] = content
    else:
    # In unmatched cases, we still add the parsed type and content to the program details.
    # Some of these will lead to xmltv output during the xmlefy_programs step
    programs[i][type] = content
    # do not cache programming that is unknown at the time
    # of fetching.
    if programs[i]['name'].lower() != 'onbekend':
    program_cache.add(programs[i])
    if not quiet:
    sys.stderr.write('\ndone...\n\n')
    # done
    def title_split(program):
    Some channels have the annoying habit of adding the subtitle to the title of a program.
    This function attempts to fix this, by splitting the name at a ': '.
    if (program.has_key('titel aflevering') and program['titel aflevering'] != '') \
    or (program.has_key('genre') and program['genre'].lower() in ['movies','film']):
    return
    colonpos = program['name'].rfind(': ')
    if colonpos > 0:
    program['titel aflevering'] = program['name'][colonpos+1:len(program['name'])].strip()
    program['name'] = program['name'][0:colonpos].strip()
    def xmlefy_programs(programs, channel, desc_len, compat=0, nocattrans=0):
    Given a list of programming (from get_channels())
    returns a string with the xml equivalent
    output = []
    for program in programs:
    clumpidx = ''
    try:
    if program.has_key('clumpidx'):
    clumpidx = 'clumpidx="'+program['clumpidx']+'"'
    except:
    print program
    output.append(' <programme start="%s" stop="%s" channel="%s%s" %s> \n' % \
    (format_timezone(program['start-time']), format_timezone(program['stop-time']),\
    channel, compat and '.tvgids.nl' or '', clumpidx))
    output.append(' <title lang="nl">%s</title>\n' % filter_line(program['name']))
    if program.has_key('titel aflevering') and program['titel aflevering'] != '':
    output.append(' <sub-title lang="nl">%s</sub-title>\n' % filter_line(program['titel aflevering']))
    desc = []
    for detail_row in ['detail1','detail2','detail3']:
    if program.has_key(detail_row) and not re.search('[Gg]een detailgegevens be(?:kend|schikbaar)', program[detail_row]):
    desc.append('%s ' % program[detail_row])
    if desc != []:
    # join and remove newlines from descriptions
    desc_line = "".join(desc).strip()
    desc_line.replace('\n', ' ')
    if len(desc_line) > desc_len:
    spacepos = desc_line[0:desc_len-3].rfind(' ')
    desc_line = desc_line[0:spacepos] + '...'
    output.append(' <desc lang="nl">%s</desc>\n' % desc_line)
    # Process credits section if present.
    # This will generate director/actor/presenter info.
    if program.has_key('credits') and program['credits'] != {}:
    output.append(' <credits>\n')
    for role in program['credits']:
    for name in program['credits'][role]:
    if name != '':
    output.append(' <%s>%s</%s>\n' % (role, name, role))
    output.append(' </credits>\n')
    if program.has_key('jaar van premiere') and program['jaar van premiere'] != '':
    output.append(' <date>%s</date>\n' % program['jaar van premiere'])
    if program.has_key('genre') and program['genre'] != '':
    output.append(' <category')
    if nocattrans:
    output.append(' lang="nl"')
    output.append ('>%s</category>\n' % program['genre'])
    if program.has_key('infourl') and program['infourl'] != '':
    output.append(' <url>%s</url>\n' % program['infourl'])
    if program.has_key('aflevering') and program['aflevering'] != '':
    output.append(' <episode-num system="onscreen">%s</episode-num>\n' % filter_line(program['aflevering']))
    # Process video section if present
    if program.has_key('video') and program['video'] != {}:
    output.append(' <video>\n');
    if program['video'].has_key('breedbeeld'):
    output.append(' <aspect>16:9</aspect>\n')
    if program['video'].has_key('blackwhite'):
    output.append(' <colour>no</colour>\n')
    output.append(' </video>\n')
    if program.has_key('stereo'):
    output.append(' <audio><stereo>stereo</stereo></audio>\n')
    if program.has_key('teletekst'):
    output.append(' <subtitles type="teletext" />\n')
    # Set star-rating if applicable
    if program['star-rating'] != '':
    output.append(' <star-rating><value>%s</value></star-rating>\n' % program['star-rating'])
    output.append(' </programme>\n')
    return "".join(output)
    def main():
    # Parse command line options
    try:
    opts, args = getopt.getopt(sys.argv[1:], "h", ["help", "output=", "capabilities",
    "preferredmethod", "days=",
    "configure", "fast", "slow",
    "cache=", "clean_cache",
    "slowdays=","compat",
    "desc-length=","description",
    "nocattrans","config-file=",
    "max_overlap=", "overlap_strategy=",
    "clear_cache", "quiet","logos="])
    except getopt.GetoptError:
    usage()
    sys.exit(2)
    # DEFAULT OPTIONS - Edit if you know what you are doing
    # where the output goes
    output = None
    output_file = None
    # the total number of days to fetch
    days = 6
    # Fetch data in fast mode, i.e. do NOT grab all the detail information,
    # fast means fast, because as it then does not have to fetch a web page for each program
    # Default: fast=0
    fast = 0
    # number of days to fetch in slow mode. For example: --days 5 --slowdays 2, will
    # fetch the first two days in slow mode (with all the details) and the remaining three
    # days in fast mode.
    slowdays = 6
    # no output
    quiet = 0
    # insert url of channel logo into the xml data, this will be picked up by mythfilldatabase
    logos = 1
    # enable this option if you were using tv_grab_nl, it adjusts the generated
    # xmltvid's so that everything works.
    compat = 0
    # enable this option if you do not want the tvgids categories being translated into
    # MythTV-categories (genres)
    nocattrans = 0
    # Maximum number of characters to use for program description.
    # Different values may work better in different versions of MythTV.
    desc_len = 475
    # default configuration file locations
    hpath = ''
    if os.environ.has_key('HOME'):
    hpath = os.environ['HOME']
    # extra test for windows users
    elif os.environ.has_key('HOMEPATH'):
    hpath = os.environ['HOMEPATH']
    # hpath = ''
    xmltv_dir = hpath+'/.xmltv'
    program_cache_file = xmltv_dir+'/program_cache'
    config_file = xmltv_dir+'/tv_grab_nl_py.conf'
    # cache the detail information.
    program_cache = None
    clean_cache = 1
    clear_cache = 0
    # seed the random generator
    random.seed(time.time())
    for o, a in opts:
    if o in ("-h", "--help"):
    usage()
    sys.exit(1)
    if o == "--quiet":
    quiet = 1;
    if o == "--description":
    print "The Netherlands (tv_grab_nl_py $Rev: 104 $)"
    sys.exit(0)
    if o == "--capabilities":
    print "baseline"
    print "cache"
    print "manualconfig"
    print "preferredmethod"
    sys.exit(0)
    if o == '--preferredmethod':
    print 'allatonce'
    sys.exit(0)
    if o == '--desc-length':
    # Use the requested length for programme descriptions.
    desc_len = int(a)
    if not quiet:
    sys.stderr.write('Using description length: %d\n' % desc_len)
    for o, a in opts:
    if o == "--config-file":
    # use the provided name for configuration
    config_file = a
    if not quiet:
    sys.stderr.write('Using config file: %s\n' % config_file)
    for o, a in opts:
    if o == "--configure":
    # check for the ~.xmltv dir
    if not os.path.exists(xmltv_dir):
    if not quiet:
    sys.stderr.write('You do not have the ~/.xmltv directory,')
    sys.stderr.write('I am going to make a shiny new one for you...')
    os.mkdir(xmltv_dir)
    if not quiet:
    sys.stderr.write('Creating config file: %s\n' % config_file)
    get_channels(config_file)
    sys.exit(0)
    if o == "--days":
    # limit days to maximum supported by tvgids.nl
    days = min(int(a),6)
    if o == "--compat":
    compat = 1
    if o == "--nocattrans":
    nocattrans = 1
    if o == "--fast":
    fast = 1
    if o == "--output":
    output_file = a
    try:
    output = open(output_file,'w')
    # and redirect output
    if debug:
    debug_file = open('/tmp/kaas.xml','w')
    blah = redirect.Tee(output, debug_file)
    sys.stdout = blah
    else:
    sys.stdout = output
    except:
    if not quiet:
    sys.stderr.write('Cannot write to outputfile: %s\n' % output_file)
    sys.exit(2)
    if o == "--slowdays":
    # limit slowdays to maximum supported by tvgids.nl
    slowdays = min(int(a),6)
    # slowdays implies fast == 0
    fast = 0
    if o == "--logos":
    logos = int(a)
    if o == "--clean_cache":
    clean_cache = 1
    if o == "--clear_cache":
    clear_cache = 1
    if o == "--cache":
    program_cache_file = a
    if o == "--max_overlap":
    max_overlap = int(a)
    if o == "--overlap_strategy":
    overlap_strategy = a
    # get configfile if available
    try:
    f = open(config_file,'r')
    except:
    sys.stderr.write('Config file %s not found.\n' % config_file)
    sys.stderr.write('Re-run me with the --configure flag.\n')
    sys.exit(1)
    #check for cache
    program_cache = ProgramCache(program_cache_file)
    if clean_cache != 0:
    program_cache.clean()
    if clear_cache != 0:
    program_cache.clear()
    # Go!
    channels = {}
    # Read the channel stuff
    for blah in f.readlines():
    blah = blah.lstrip()
    blah = blah.replace('\n','')
    if blah:
    if blah[0] != '#':
    channel = blah.split()
    channels[channel[0]] = " ".join(channel[1:])
    # channels are now in channels dict keyed on channel id
    # print header stuff
    print '<?xml version="1.0" encoding="ISO-8859-1"?>'
    print '<!DOCTYPE tv SYSTEM "xmltv.dtd">'
    print '<tv generator-info-name="tv_grab_nl_py $Rev: 104 $">'
    # first do the channel info
    for key in channels.keys():
    print ' <channel id="%s%s">' % (key, compat and '.tvgids.nl' or '')
    print ' <display-name lang="nl">%s</display-name>' % channels[key]
    if (logos):
    ikey = int(key)
    if logo_names.has_key(ikey):
    full_logo_url = logo_provider[logo_names[ikey][0]]+logo_names[ikey][1]+'.gif'
    print ' <icon src="%s" />' % full_logo_url
    print ' </channel>'
    num_chans = len(channels.keys())
    channel_cnt = 0
    if program_cache != None:
    program_cache.clean()
    fluffy = channels.keys()
    nfluffy = len(fluffy)
    for id in fluffy:
    channel_cnt += 1
    if not quiet:
    sys.stderr.write('\n\nNow fetching %s(xmltvid=%s%s) (channel %s of %s)\n' % \
    (channels[id], id, (compat and '.tvgids.nl' or ''), channel_cnt, nfluffy))
    info = get_channel_all_days(id, days, quiet)
    blah = parse_programs(info, None, quiet)
    # fetch descriptions
    if not fast:
    get_descriptions(blah, program_cache, nocattrans, quiet, slowdays)
    # Split titles with colon in it
    # Note: this only takes place if all days retrieved are also grabbed with details (slowdays=days)
    # otherwise this function might change some titles after a few grabs and thus may result in
    # loss of programmed recordings for these programs.
    if slowdays == days:
    for program in blah:
    title_split(program)
    print xmlefy_programs(blah, id, desc_len, compat, nocattrans)
    # save the cache after each channel fetch
    if program_cache != None:
    program_cache.dump(program_cache_file)
    # be nice to tvgids.nl
    time.sleep(random.randint(nice_time[0], nice_time[1]))
    if program_cache != None:
    program_cache.dump(program_cache_file)
    # print footer stuff
    print "</tv>"
    # close the outputfile if necessary
    if output != None:
    output.close()
    # and return success
    sys.exit(0)
    # allow this to be a module
    if __name__ == '__main__':
    main()
    # vim:tw=0:et:sw=4
    [cedric@tv ~]$
    Best regards,
    Cedric
    Last edited by cdwijs (2010-11-04 18:44:51)

    Running the script by python2 solves it for me:
    su - mythtv -c "nice -n 19 python2 /usr/bin/tv_grab_nl_py --output ~/listings.xml"
    Best regards,
    Cedric

  • [Solved]xorg fails to start, integrated nvidia gpu with intel

    Arch 32 Bit system
    When i start X server it says server terminated succesfully.
    the output of "lspci | grep VGA"
    00:02:0 VGA Compatible Controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
    01:00:0 VGA Compatible Controller: NVIDIA Corporation GF108M [GrForce GT 540M] (rev a1)
    I installed xf86-video-modesettings xf86-video-fbdev nvidia nvidia-libgl nvidia-utils xorg-server xorg-server-utils xorg-xinit xterm xorg-twm xorg-xclock
    I guess the problem is monitor cant be detected but i dont know how can i make nvidia to find it. Look at Monitor section at 10-nvidia.conf and also Xorg.0.log.
    xorg.conf
    # nvidia-xconfig: X configuration file generated by nvidia-xconfig
    # nvidia-xconfig: version 337.12 (buildmeister@swio-display-x64-rhel04-18) Fri Apr 4 15:15:13 PDT 2014
    Section "ServerLayout"
    Identifier "Layout0"
    Screen 0 "Screen0" 0 0
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "Mouse0" "CorePointer"
    EndSection
    Section "Files"
    EndSection
    Section "InputDevice"
    # generated from default
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/psaux"
    Option "Emulate3Buttons" "no"
    Option "ZAxisMapping" "4 5"
    EndSection
    Section "InputDevice"
    # generated from default
    Identifier "Keyboard0"
    Driver "kbd"
    EndSection
    Section "Monitor"
    Identifier "Monitor0"
    VendorName "Unknown"
    ModelName "Unknown"
    HorizSync 28.0 - 33.0
    VertRefresh 43.0 - 72.0
    Option "DPMS"
    EndSection
    Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    DefaultDepth 24
    SubSection "Display"
    Depth 24
    EndSubSection
    EndSection
    xorg.conf.d/10-nvidia.conf
    Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BusID "PCI:1:0:0"
    EndSection
    xorg.conf.d/10-evdev.conf
    # Catch-all evdev loader for udev-based systems
    # We don't simply match on any device since that also adds accelerometers
    # and other devices that we don't really want to use. The list below
    # matches everything but joysticks.
    Section "InputClass"
    Identifier "evdev pointer catchall"
    MatchIsPointer "on"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
    EndSection
    Section "InputClass"
    Identifier "evdev keyboard catchall"
    MatchIsKeyboard "on"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
    EndSection
    Section "InputClass"
    Identifier "evdev touchpad catchall"
    MatchIsTouchpad "on"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
    EndSection
    Section "InputClass"
    Identifier "evdev tablet catchall"
    MatchIsTablet "on"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
    EndSection
    Section "InputClass"
    Identifier "evdev touchscreen catchall"
    MatchIsTouchscreen "on"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
    EndSection
    xorg.conf.d/10-quirks.conf
    # Collection of quirks and blacklist/whitelists for specific devices.
    # Accelerometer device, posts data through ABS_X/ABS_Y, making X unusable
    # http://bugs.freedesktop.org/show_bug.cgi?id=22442
    Section "InputClass"
    Identifier "ThinkPad HDAPS accelerometer blacklist"
    MatchProduct "ThinkPad HDAPS accelerometer data"
    Option "Ignore" "on"
    EndSection
    xorg.conf.d/50-synaptics.conf
    # Example xorg.conf.d snippet that assigns the touchpad driver
    # to all touchpads. See xorg.conf.d(5) for more information on
    # InputClass.
    # DO NOT EDIT THIS FILE, your distribution will likely overwrite
    # it when updating. Copy (and rename) this file into
    # /etc/X11/xorg.conf.d first.
    # Additional options may be added in the form of
    # Option "OptionName" "value"
    Section "InputClass"
    Identifier "touchpad catchall"
    Driver "synaptics"
    MatchIsTouchpad "on"
    Option "TapButton1" "1"
    Option "TapButton2" "2"
    Option "TapButton3" "3"
    # This option is recommend on all Linux systems using evdev, but cannot be
    # enabled by default. See the following link for details:
    # http://who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html
    MatchDevicePath "/dev/input/event*"
    EndSection
    Section "InputClass"
    Identifier "touchpad ignore duplicates"
    MatchIsTouchpad "on"
    MatchOS "Linux"
    MatchDevicePath "/dev/input/mouse*"
    Option "Ignore" "on"
    EndSection
    # This option enables the bottom right corner to be a right button on
    # non-synaptics clickpads.
    # This option is only interpreted by clickpads.
    Section "InputClass"
    Identifier "Default clickpad buttons"
    MatchDriver "synaptics"
    Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
    # To disable the bottom edge area so the buttons only work as buttons,
    # not for movement, set the AreaBottomEdge
    # Option "AreaBottomEdge" "82%"
    EndSection
    # This option disables software buttons on Apple touchpads.
    # This option is only interpreted by clickpads.
    Section "InputClass"
    Identifier "Disable clickpad buttons on Apple touchpads"
    MatchProduct "Apple|bcm5974"
    MatchDriver "synaptics"
    Option "SoftButtonAreas" "0 0 0 0 0 0 0 0"
    EndSection
    And finally
    /var/log/Xorg.0.log
    [ 37.622]
    X.Org X Server 1.15.1
    Release Date: 2014-04-13
    [ 37.622] X Protocol Version 11, Revision 0
    [ 37.622] Build Operating System: Linux 3.14.0-4-ARCH i686
    [ 37.622] Current Operating System: Linux Ceset-PC 3.14.1-1-ARCH #1 SMP PREEMPT Mon Apr 14 21:01:08 CEST 2014 i686
    [ 37.622] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=c4bc1b1f-6e34-413e-bd2a-202d403c593d rw quiet
    [ 37.623] Build Date: 14 April 2014 08:41:02AM
    [ 37.623]
    [ 37.623] Current version of pixman: 0.32.4
    [ 37.623] Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
    [ 37.623] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    [ 37.624] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Apr 28 14:31:33 2014
    [ 37.644] (==) Using config file: "/etc/X11/xorg.conf"
    [ 37.644] (==) Using config directory: "/etc/X11/xorg.conf.d"
    [ 37.680] (==) ServerLayout "Layout0"
    [ 37.680] (**) |-->Screen "Screen0" (0)
    [ 37.680] (**) | |-->Monitor "Monitor0"
    [ 37.680] (**) | |-->Device "Device0"
    [ 37.680] (**) |-->Input Device "Keyboard0"
    [ 37.681] (**) |-->Input Device "Mouse0"
    [ 37.681] (==) Automatically adding devices
    [ 37.681] (==) Automatically enabling devices
    [ 37.681] (==) Automatically adding GPU devices
    [ 37.725] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
    [ 37.725] Entry deleted from font path.
    [ 37.726] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
    [ 37.726] Entry deleted from font path.
    [ 37.726] (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
    [ 37.726] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
    [ 37.726] Entry deleted from font path.
    [ 37.726] (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
    [ 37.726] (==) FontPath set to:
    /usr/share/fonts/misc/,
    /usr/share/fonts/TTF/,
    /usr/share/fonts/Type1/
    [ 37.726] (==) ModulePath set to "/usr/lib/xorg/modules"
    [ 37.726] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
    [ 37.726] (WW) Disabling Keyboard0
    [ 37.726] (WW) Disabling Mouse0
    [ 37.727] (II) Loader magic: 0x8264660
    [ 37.727] (II) Module ABI versions:
    [ 37.727] X.Org ANSI C Emulation: 0.4
    [ 37.727] X.Org Video Driver: 15.0
    [ 37.727] X.Org XInput driver : 20.0
    [ 37.727] X.Org Server Extension : 8.0
    [ 37.727] (II) xfree86: Adding drm device (/dev/dri/card1)
    [ 37.728] (II) xfree86: Adding drm device (/dev/dri/card0)
    [ 37.731] (--) PCI:*(0:0:2:0) 8086:0116:1025:0511 rev 9, Mem @ 0xd1400000/4194304, 0xc0000000/268435456, I/O @ 0x00003000/64
    [ 37.731] (--) PCI: (0:1:0:0) 10de:0df4:1025:0512 rev 161, Mem @ 0xd0000000/16777216, 0xa0000000/268435456, 0xb0000000/33554432, I/O @ 0x00002000/128, BIOS @ 0x????????/524288
    [ 37.732] (II) Open ACPI successful (/var/run/acpid.socket)
    [ 37.732] Initializing built-in extension Generic Event Extension
    [ 37.732] Initializing built-in extension SHAPE
    [ 37.732] Initializing built-in extension MIT-SHM
    [ 37.732] Initializing built-in extension XInputExtension
    [ 37.733] Initializing built-in extension XTEST
    [ 37.733] Initializing built-in extension BIG-REQUESTS
    [ 37.733] Initializing built-in extension SYNC
    [ 37.733] Initializing built-in extension XKEYBOARD
    [ 37.733] Initializing built-in extension XC-MISC
    [ 37.733] Initializing built-in extension SECURITY
    [ 37.733] Initializing built-in extension XINERAMA
    [ 37.733] Initializing built-in extension XFIXES
    [ 37.733] Initializing built-in extension RENDER
    [ 37.733] Initializing built-in extension RANDR
    [ 37.734] Initializing built-in extension COMPOSITE
    [ 37.734] Initializing built-in extension DAMAGE
    [ 37.734] Initializing built-in extension MIT-SCREEN-SAVER
    [ 37.734] Initializing built-in extension DOUBLE-BUFFER
    [ 37.734] Initializing built-in extension RECORD
    [ 37.734] Initializing built-in extension DPMS
    [ 37.734] Initializing built-in extension Present
    [ 37.736] Initializing built-in extension DRI3
    [ 37.739] Initializing built-in extension X-Resource
    [ 37.741] Initializing built-in extension XVideo
    [ 37.743] Initializing built-in extension XVideo-MotionCompensation
    [ 37.745] Initializing built-in extension XFree86-VidModeExtension
    [ 37.747] Initializing built-in extension XFree86-DGA
    [ 37.748] Initializing built-in extension XFree86-DRI
    [ 37.750] Initializing built-in extension DRI2
    [ 37.750] (II) LoadModule: "glx"
    [ 37.765] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    [ 38.573] (II) Module glx: vendor="NVIDIA Corporation"
    [ 38.573] compiled for 4.0.2, module version = 1.0.0
    [ 38.573] Module class: X.Org Server Extension
    [ 38.573] (II) NVIDIA GLX Module 337.12 Fri Apr 4 14:32:00 PDT 2014
    [ 38.575] Loading extension GLX
    [ 38.575] (II) LoadModule: "nvidia"
    [ 38.575] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
    [ 38.641] (II) Module nvidia: vendor="NVIDIA Corporation"
    [ 38.641] compiled for 4.0.2, module version = 1.0.0
    [ 38.641] Module class: X.Org Video Driver
    [ 38.652] (II) NVIDIA dlloader X Driver 337.12 Fri Apr 4 14:10:20 PDT 2014
    [ 38.653] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
    [ 38.654] (++) using VT number 2
    [ 38.655] (II) Loading sub module "fb"
    [ 38.655] (II) LoadModule: "fb"
    [ 38.656] (II) Loading /usr/lib/xorg/modules/libfb.so
    [ 38.668] (II) Module fb: vendor="X.Org Foundation"
    [ 38.668] compiled for 1.15.1, module version = 1.0.0
    [ 38.668] ABI class: X.Org ANSI C Emulation, version 0.4
    [ 38.668] (WW) Unresolved symbol: fbGetGCPrivateKey
    [ 38.668] (II) Loading sub module "wfb"
    [ 38.668] (II) LoadModule: "wfb"
    [ 38.669] (II) Loading /usr/lib/xorg/modules/libwfb.so
    [ 38.671] (II) Module wfb: vendor="X.Org Foundation"
    [ 38.671] compiled for 1.15.1, module version = 1.0.0
    [ 38.671] ABI class: X.Org ANSI C Emulation, version 0.4
    [ 38.671] (II) Loading sub module "ramdac"
    [ 38.671] (II) LoadModule: "ramdac"
    [ 38.671] (II) Module "ramdac" already built-in
    [ 38.675] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
    [ 38.675] (==) NVIDIA(0): RGB weight 888
    [ 38.675] (==) NVIDIA(0): Default visual is TrueColor
    [ 38.675] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
    [ 38.676] (**) NVIDIA(0): Enabling 2D acceleration
    [ 45.267] (WW) NVIDIA(0): Unable to read EDID for display device CRT-0
    [ 45.268] (II) NVIDIA(GPU-0): Found DRM driver nvidia-drm (20130102)
    [ 45.270] (II) NVIDIA(0): NVIDIA GPU GeForce GT 540M (GF108) at PCI:1:0:0 (GPU-0)
    [ 45.270] (--) NVIDIA(0): Memory: 1048576 kBytes
    [ 45.270] (--) NVIDIA(0): VideoBIOS: 70.08.3c.00.19
    [ 45.270] (II) NVIDIA(0): Detected PCI Express Link width: 16X
    [ 45.275] (--) NVIDIA(0): Valid display device(s) on GeForce GT 540M at PCI:1:0:0
    [ 45.275] (--) NVIDIA(0): CRT-0 (boot, connected)
    [ 45.275] (--) NVIDIA(0): DFP-0
    [ 45.275] (--) NVIDIA(0): DFP-1
    [ 45.275] (--) NVIDIA(GPU-0): CRT-0: 400.0 MHz maximum pixel clock
    [ 45.275] (--) NVIDIA(0): DFP-0: Internal LVDS
    [ 45.275] (--) NVIDIA(GPU-0): DFP-0: 330.0 MHz maximum pixel clock
    [ 45.275] (--) NVIDIA(0): DFP-1: Internal TMDS
    [ 45.275] (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
    [ 45.275] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
    [ 45.275] (**) NVIDIA(0): device CRT-0 (Using EDID frequencies has been enabled on
    [ 45.275] (**) NVIDIA(0): all display devices.)
    [ 45.276] (==) NVIDIA(0):
    [ 45.276] (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
    [ 45.276] (==) NVIDIA(0): will be used as the requested mode.
    [ 45.276] (==) NVIDIA(0):
    [ 45.277] (II) NVIDIA(0): Validated MetaModes:
    [ 45.277] (II) NVIDIA(0): "CRT-0:nvidia-auto-select"
    [ 45.277] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
    [ 45.281] (WW) NVIDIA(0): Unable to get display device CRT-0's EDID; cannot compute DPI
    [ 45.281] (WW) NVIDIA(0): from CRT-0's EDID.
    [ 45.281] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
    [ 45.281] (--) Depth 24 pixmap format is 32 bpp
    [ 45.281] (II) NVIDIA: Using 1024.00 MB of virtual memory for indirect memory
    [ 45.281] (II) NVIDIA: access.
    [ 45.499] (II) NVIDIA(0): Setting mode "CRT-0:nvidia-auto-select"
    [ 45.544] (II) NVIDIA(0): Built-in logo is bigger than the screen.
    [ 45.544] Loading extension NV-GLX
    [ 45.648] (==) NVIDIA(0): Disabling shared memory pixmaps
    [ 45.649] (==) NVIDIA(0): Backing store enabled
    [ 45.649] (==) NVIDIA(0): Silken mouse enabled
    [ 45.651] (**) NVIDIA(0): DPMS enabled
    [ 45.651] Loading extension NV-CONTROL
    [ 45.651] Loading extension XINERAMA
    [ 45.651] (II) Loading sub module "dri2"
    [ 45.651] (II) LoadModule: "dri2"
    [ 45.651] (II) Module "dri2" already built-in
    [ 45.651] (II) NVIDIA(0): [DRI2] Setup complete
    [ 45.652] (II) NVIDIA(0): [DRI2] VDPAU driver: nvidia
    [ 45.652] (--) RandR disabled
    [ 45.673] (II) Initializing extension GLX
    [ 45.973] (II) config/udev: Adding input device Power Button (/dev/input/event4)
    [ 45.973] (**) Power Button: Applying InputClass "evdev keyboard catchall"
    [ 45.973] (II) LoadModule: "evdev"
    [ 45.989] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
    [ 46.007] (II) Module evdev: vendor="X.Org Foundation"
    [ 46.007] compiled for 1.15.0, module version = 2.8.2
    [ 46.007] Module class: X.Org XInput Driver
    [ 46.007] ABI class: X.Org XInput driver, version 20.0
    [ 46.007] (II) Using input driver 'evdev' for 'Power Button'
    [ 46.007] (**) Power Button: always reports core events
    [ 46.007] (**) evdev: Power Button: Device: "/dev/input/event4"
    [ 46.007] (--) evdev: Power Button: Vendor 0 Product 0x1
    [ 46.007] (--) evdev: Power Button: Found keys
    [ 46.007] (II) evdev: Power Button: Configuring as keyboard
    [ 46.007] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input5/event4"
    [ 46.007] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
    [ 46.007] (**) Option "xkb_rules" "evdev"
    [ 46.007] (**) Option "xkb_model" "pc104"
    [ 46.007] (**) Option "xkb_layout" "us"
    [ 46.062] (II) config/udev: Adding input device Video Bus (/dev/input/event13)
    [ 46.063] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
    [ 46.063] (II) Using input driver 'evdev' for 'Video Bus'
    [ 46.063] (**) Video Bus: always reports core events
    [ 46.063] (**) evdev: Video Bus: Device: "/dev/input/event13"
    [ 46.063] (--) evdev: Video Bus: Vendor 0 Product 0x6
    [ 46.063] (--) evdev: Video Bus: Found keys
    [ 46.063] (II) evdev: Video Bus: Configuring as keyboard
    [ 46.063] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:00/input/input15/event13"
    [ 46.063] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
    [ 46.063] (**) Option "xkb_rules" "evdev"
    [ 46.063] (**) Option "xkb_model" "pc104"
    [ 46.063] (**) Option "xkb_layout" "us"
    [ 46.064] (II) config/udev: Adding input device Power Button (/dev/input/event1)
    [ 46.064] (**) Power Button: Applying InputClass "evdev keyboard catchall"
    [ 46.064] (II) Using input driver 'evdev' for 'Power Button'
    [ 46.064] (**) Power Button: always reports core events
    [ 46.064] (**) evdev: Power Button: Device: "/dev/input/event1"
    [ 46.064] (--) evdev: Power Button: Vendor 0 Product 0x1
    [ 46.064] (--) evdev: Power Button: Found keys
    [ 46.064] (II) evdev: Power Button: Configuring as keyboard
    [ 46.064] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:02/PNP0C0C:00/input/input2/event1"
    [ 46.064] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 8)
    [ 46.064] (**) Option "xkb_rules" "evdev"
    [ 46.064] (**) Option "xkb_model" "pc104"
    [ 46.064] (**) Option "xkb_layout" "us"
    [ 46.066] (II) config/udev: Adding input device Lid Switch (/dev/input/event2)
    [ 46.066] (II) No input driver specified, ignoring this device.
    [ 46.066] (II) This device may have been added with another device file.
    [ 46.066] (II) config/udev: Adding input device Sleep Button (/dev/input/event3)
    [ 46.066] (**) Sleep Button: Applying InputClass "evdev keyboard catchall"
    [ 46.066] (II) Using input driver 'evdev' for 'Sleep Button'
    [ 46.066] (**) Sleep Button: always reports core events
    [ 46.066] (**) evdev: Sleep Button: Device: "/dev/input/event3"
    [ 46.066] (--) evdev: Sleep Button: Vendor 0 Product 0x3
    [ 46.066] (--) evdev: Sleep Button: Found keys
    [ 46.066] (II) evdev: Sleep Button: Configuring as keyboard
    [ 46.066] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:02/PNP0C0E:00/input/input4/event3"
    [ 46.067] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 9)
    [ 46.067] (**) Option "xkb_rules" "evdev"
    [ 46.067] (**) Option "xkb_model" "pc104"
    [ 46.067] (**) Option "xkb_layout" "us"
    [ 46.068] (II) config/udev: Adding input device Video Bus (/dev/input/event14)
    [ 46.068] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
    [ 46.068] (II) Using input driver 'evdev' for 'Video Bus'
    [ 46.068] (**) Video Bus: always reports core events
    [ 46.068] (**) evdev: Video Bus: Device: "/dev/input/event14"
    [ 46.068] (--) evdev: Video Bus: Vendor 0 Product 0x6
    [ 46.068] (--) evdev: Video Bus: Found keys
    [ 46.068] (II) evdev: Video Bus: Configuring as keyboard
    [ 46.068] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:35/LNXVIDEO:01/input/input16/event14"
    [ 46.068] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 10)
    [ 46.068] (**) Option "xkb_rules" "evdev"
    [ 46.068] (**) Option "xkb_model" "pc104"
    [ 46.068] (**) Option "xkb_layout" "us"
    [ 46.069] (II) config/udev: Adding drm device (/dev/dri/card1)
    [ 46.069] (II) config/udev: Adding drm device (/dev/dri/card0)
    [ 46.070] (II) config/udev: Adding input device 1.3M HD WebCam (/dev/input/event6)
    [ 46.070] (**) 1.3M HD WebCam: Applying InputClass "evdev keyboard catchall"
    [ 46.070] (II) Using input driver 'evdev' for '1.3M HD WebCam'
    [ 46.070] (**) 1.3M HD WebCam: always reports core events
    [ 46.070] (**) evdev: 1.3M HD WebCam: Device: "/dev/input/event6"
    [ 46.070] (--) evdev: 1.3M HD WebCam: Vendor 0x58f Product 0xb002
    [ 46.070] (--) evdev: 1.3M HD WebCam: Found keys
    [ 46.070] (II) evdev: 1.3M HD WebCam: Configuring as keyboard
    [ 46.070] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3/1-1.3:1.0/input/input8/event6"
    [ 46.070] (II) XINPUT: Adding extended input device "1.3M HD WebCam" (type: KEYBOARD, id 11)
    [ 46.070] (**) Option "xkb_rules" "evdev"
    [ 46.070] (**) Option "xkb_model" "pc104"
    [ 46.070] (**) Option "xkb_layout" "us"
    [ 46.071] (II) config/udev: Adding input device HDA Digital PCBeep (/dev/input/event7)
    [ 46.071] (II) No input driver specified, ignoring this device.
    [ 46.071] (II) This device may have been added with another device file.
    [ 46.072] (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event12)
    [ 46.072] (II) No input driver specified, ignoring this device.
    [ 46.072] (II) This device may have been added with another device file.
    [ 46.072] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event11)
    [ 46.072] (II) No input driver specified, ignoring this device.
    [ 46.072] (II) This device may have been added with another device file.
    [ 46.073] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=3 (/dev/input/event10)
    [ 46.073] (II) No input driver specified, ignoring this device.
    [ 46.073] (II) This device may have been added with another device file.
    [ 46.073] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
    [ 46.073] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
    [ 46.073] (II) Using input driver 'evdev' for 'AT Translated Set 2 keyboard'
    [ 46.074] (**) AT Translated Set 2 keyboard: always reports core events
    [ 46.074] (**) evdev: AT Translated Set 2 keyboard: Device: "/dev/input/event0"
    [ 46.074] (--) evdev: AT Translated Set 2 keyboard: Vendor 0x1 Product 0x1
    [ 46.074] (--) evdev: AT Translated Set 2 keyboard: Found keys
    [ 46.074] (II) evdev: AT Translated Set 2 keyboard: Configuring as keyboard
    [ 46.074] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input0/event0"
    [ 46.074] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 12)
    [ 46.074] (**) Option "xkb_rules" "evdev"
    [ 46.074] (**) Option "xkb_model" "pc104"
    [ 46.074] (**) Option "xkb_layout" "us"
    [ 46.075] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/event15)
    [ 46.075] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "evdev touchpad catchall"
    [ 46.075] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "touchpad catchall"
    [ 46.075] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "Default clickpad buttons"
    [ 46.075] (II) LoadModule: "synaptics"
    [ 46.075] (II) Loading /usr/lib/xorg/modules/input/synaptics_drv.so
    [ 46.092] (II) Module synaptics: vendor="X.Org Foundation"
    [ 46.092] compiled for 1.15.0, module version = 1.7.4
    [ 46.092] Module class: X.Org XInput Driver
    [ 46.092] ABI class: X.Org XInput driver, version 20.0
    [ 46.092] (II) Using input driver 'synaptics' for 'SynPS/2 Synaptics TouchPad'
    [ 46.092] (**) SynPS/2 Synaptics TouchPad: always reports core events
    [ 46.092] (**) Option "Device" "/dev/input/event15"
    [ 46.250] (II) synaptics: SynPS/2 Synaptics TouchPad: ignoring touch events for semi-multitouch device
    [ 46.250] (--) synaptics: SynPS/2 Synaptics TouchPad: x-axis range 1472 - 5774 (res 56)
    [ 46.250] (--) synaptics: SynPS/2 Synaptics TouchPad: y-axis range 1408 - 5022 (res 105)
    [ 46.250] (--) synaptics: SynPS/2 Synaptics TouchPad: pressure range 0 - 255
    [ 46.250] (--) synaptics: SynPS/2 Synaptics TouchPad: finger width range 0 - 15
    [ 46.250] (--) synaptics: SynPS/2 Synaptics TouchPad: buttons: left right double triple
    [ 46.250] (--) synaptics: SynPS/2 Synaptics TouchPad: Vendor 0x2 Product 0x7
    [ 46.250] (**) Option "TapButton1" "1"
    [ 46.250] (**) Option "TapButton2" "2"
    [ 46.250] (**) Option "TapButton3" "3"
    [ 46.250] (--) synaptics: SynPS/2 Synaptics TouchPad: touchpad found
    [ 46.250] (**) SynPS/2 Synaptics TouchPad: always reports core events
    [ 46.316] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input7/event15"
    [ 46.316] (II) XINPUT: Adding extended input device "SynPS/2 Synaptics TouchPad" (type: TOUCHPAD, id 13)
    [ 46.317] (**) synaptics: SynPS/2 Synaptics TouchPad: (accel) MinSpeed is now constant deceleration 2.5
    [ 46.317] (**) synaptics: SynPS/2 Synaptics TouchPad: (accel) MaxSpeed is now 1.75
    [ 46.317] (**) synaptics: SynPS/2 Synaptics TouchPad: (accel) AccelFactor is now 0.036
    [ 46.317] (**) SynPS/2 Synaptics TouchPad: (accel) keeping acceleration scheme 1
    [ 46.317] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration profile 1
    [ 46.317] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration factor: 2.000
    [ 46.317] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration threshold: 4
    [ 46.317] (--) synaptics: SynPS/2 Synaptics TouchPad: touchpad found
    [ 46.318] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/mouse0)
    [ 46.318] (**) SynPS/2 Synaptics TouchPad: Ignoring device from InputClass "touchpad ignore duplicates"
    [ 46.319] (II) config/udev: Adding input device PC Speaker (/dev/input/event5)
    [ 46.319] (II) No input driver specified, ignoring this device.
    [ 46.319] (II) This device may have been added with another device file.
    [ 46.319] (II) config/udev: Adding input device Acer WMI hotkeys (/dev/input/event8)
    [ 46.319] (**) Acer WMI hotkeys: Applying InputClass "evdev keyboard catchall"
    [ 46.320] (II) Using input driver 'evdev' for 'Acer WMI hotkeys'
    [ 46.320] (**) Acer WMI hotkeys: always reports core events
    [ 46.320] (**) evdev: Acer WMI hotkeys: Device: "/dev/input/event8"
    [ 46.320] (--) evdev: Acer WMI hotkeys: Vendor 0 Product 0
    [ 46.320] (--) evdev: Acer WMI hotkeys: Found keys
    [ 46.320] (II) evdev: Acer WMI hotkeys: Configuring as keyboard
    [ 46.320] (**) Option "config_info" "udev:/sys/devices/virtual/input/input10/event8"
    [ 46.320] (II) XINPUT: Adding extended input device "Acer WMI hotkeys" (type: KEYBOARD, id 14)
    [ 46.320] (**) Option "xkb_rules" "evdev"
    [ 46.320] (**) Option "xkb_model" "pc104"
    [ 46.320] (**) Option "xkb_layout" "us"
    [ 46.321] (II) config/udev: Adding input device Acer BMA150 accelerometer (/dev/input/event9)
    [ 46.321] (II) No input driver specified, ignoring this device.
    [ 46.321] (II) This device may have been added with another device file.
    [ 46.321] (II) config/udev: Adding input device Acer BMA150 accelerometer (/dev/input/js0)
    [ 46.321] (II) No input driver specified, ignoring this device.
    [ 46.321] (II) This device may have been added with another device file.
    [ 57.547] (II) evdev: Acer WMI hotkeys: Close
    [ 57.547] (II) UnloadModule: "evdev"
    [ 57.547] (II) UnloadModule: "synaptics"
    [ 57.547] (II) evdev: AT Translated Set 2 keyboard: Close
    [ 57.547] (II) UnloadModule: "evdev"
    [ 57.548] (II) evdev: 1.3M HD WebCam: Close
    [ 57.548] (II) UnloadModule: "evdev"
    [ 57.548] (II) evdev: Video Bus: Close
    [ 57.548] (II) UnloadModule: "evdev"
    [ 57.548] (II) evdev: Sleep Button: Close
    [ 57.548] (II) UnloadModule: "evdev"
    [ 57.548] (II) evdev: Power Button: Close
    [ 57.548] (II) UnloadModule: "evdev"
    [ 57.548] (II) evdev: Video Bus: Close
    [ 57.548] (II) UnloadModule: "evdev"
    [ 57.548] (II) evdev: Power Button: Close
    [ 57.548] (II) UnloadModule: "evdev"
    [ 57.580] (II) NVIDIA(GPU-0): Deleting GPU-0
    [ 57.589] (EE) Server terminated successfully (0). Closing log file.
    Last edited by hozturk0327 (2014-04-28 14:32:36)

    I realized that instead of this
    xrandr --setprovideroutputsource modesetting NVIDIA-0
    xrandr --auto
    i used
    xrandr --setprovideroutputsource NVIDIA-0
    xrandr --auto
    Now it is fixed.
    And sorry Kartious i thought i uploaded ~/.xinitrc.
    EDIT:
    uname -a outputs
    Linux Ceset-PC 3.14.1-1-ARCH #1 SMP PREEMPT Mon Apr 14 21:01:08: CEST 2014 i686 GNU/Linux
    Also this is the new Xorg.0.log
    [ 17.166]
    X.Org X Server 1.15.1
    Release Date: 2014-04-13
    [ 17.166] X Protocol Version 11, Revision 0
    [ 17.166] Build Operating System: Linux 3.14.0-4-ARCH i686
    [ 17.167] Current Operating System: Linux Ceset-PC 3.14.1-1-ARCH #1 SMP PREEMPT Mon Apr 14 21:01:08 CEST 2014 i686
    [ 17.167] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=c4bc1b1f-6e34-413e-bd2a-202d403c593d rw quiet
    [ 17.167] Build Date: 14 April 2014 08:41:02AM
    [ 17.167]
    [ 17.167] Current version of pixman: 0.32.4
    [ 17.167] Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
    [ 17.167] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW.) warning, (EE) error, (NI) not implemented, (??) unknown.
    [ 17.168] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Apr 28 16:45:17 2014
    [ 17.210] (==) Using config file: "/etc/X11/xorg.conf"
    [ 17.210] (==) Using config directory: "/etc/X11/xorg.conf.d"
    [ 17.246] (==) ServerLayout "layout"
    [ 17.246] (**) |-->Screen "nvidia" (0)
    [ 17.246] (**) | |-->Monitor "<default monitor>"
    [ 17.247] (**) | |-->Device "nvidia"
    [ 17.247] (==) No monitor specified for screen "nvidia".
    Using a default monitor configuration.
    [ 17.247] (**) |-->Inactive Device "intel"
    [ 17.247] (==) Automatically adding devices
    [ 17.247] (==) Automatically enabling devices
    [ 17.247] (==) Automatically adding GPU devices
    [ 17.290] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
    [ 17.291] Entry deleted from font path.
    [ 17.292] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
    [ 17.292] Entry deleted from font path.
    [ 17.292] (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
    [ 17.292] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
    [ 17.292] Entry deleted from font path.
    [ 17.292] (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
    [ 17.292] (==) FontPath set to:
    /usr/share/fonts/misc/,
    /usr/share/fonts/TTF/,
    /usr/share/fonts/Type1/
    [ 17.292] (==) ModulePath set to "/usr/lib/xorg/modules"
    [ 17.292] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
    [ 17.293] (II) Loader magic: 0x8264660
    [ 17.293] (II) Module ABI versions:
    [ 17.293] X.Org ANSI C Emulation: 0.4
    [ 17.293] X.Org Video Driver: 15.0
    [ 17.293] X.Org XInput driver : 20.0
    [ 17.293] X.Org Server Extension : 8.0
    [ 17.293] (II) xfree86: Adding drm device (/dev/dri/card1)
    [ 17.294] (II) xfree86: Adding drm device (/dev/dri/card0)
    [ 17.297] (--) PCI:*(0:0:2:0) 8086:0116:1025:0511 rev 9, Mem @ 0xd1400000/4194304, 0xc0000000/268435456, I/O @ 0x00003000/64
    [ 17.297] (--) PCI: (0:1:0:0) 10de:0df4:1025:0512 rev 161, Mem @ 0xd0000000/16777216, 0xa0000000/268435456, 0xb0000000/33554432, I/O @ 0x00002000/128, BIOS @ 0x????????/524288
    [ 17.297] (II) Open ACPI successful (/var/run/acpid.socket)
    [ 17.298] Initializing built-in extension Generic Event Extension
    [ 17.298] Initializing built-in extension SHAPE
    [ 17.298] Initializing built-in extension MIT-SHM
    [ 17.298] Initializing built-in extension XInputExtension
    [ 17.299] Initializing built-in extension XTEST
    [ 17.299] Initializing built-in extension BIG-REQUESTS
    [ 17.299] Initializing built-in extension SYNC
    [ 17.299] Initializing built-in extension XKEYBOARD
    [ 17.299] Initializing built-in extension XC-MISC
    [ 17.299] Initializing built-in extension SECURITY
    [ 17.299] Initializing built-in extension XINERAMA
    [ 17.299] Initializing built-in extension XFIXES
    [ 17.299] Initializing built-in extension RENDER
    [ 17.299] Initializing built-in extension RANDR
    [ 17.300] Initializing built-in extension COMPOSITE
    [ 17.300] Initializing built-in extension DAMAGE
    [ 17.300] Initializing built-in extension MIT-SCREEN-SAVER
    [ 17.300] Initializing built-in extension DOUBLE-BUFFER
    [ 17.300] Initializing built-in extension RECORD
    [ 17.300] Initializing built-in extension DPMS
    [ 17.300] Initializing built-in extension Present
    [ 17.302] Initializing built-in extension DRI3
    [ 17.305] Initializing built-in extension X-Resource
    [ 17.307] Initializing built-in extension XVideo
    [ 17.309] Initializing built-in extension XVideo-MotionCompensation
    [ 17.311] Initializing built-in extension XFree86-VidModeExtension
    [ 17.313] Initializing built-in extension XFree86-DGA
    [ 17.314] Initializing built-in extension XFree86-DRI
    [ 17.316] Initializing built-in extension DRI2
    [ 17.316] (II) LoadModule: "glx"
    [ 17.331] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    [ 18.139] (II) Module glx: vendor="NVIDIA Corporation"
    [ 18.139] compiled for 4.0.2, module version = 1.0.0
    [ 18.139] Module class: X.Org Server Extension
    [ 18.139] (II) NVIDIA GLX Module 337.12 Fri Apr 4 14:32:00 PDT 2014
    [ 18.141] Loading extension GLX
    [ 18.141] (II) LoadModule: "nvidia"
    [ 18.141] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
    [ 18.207] (II) Module nvidia: vendor="NVIDIA Corporation"
    [ 18.207] compiled for 4.0.2, module version = 1.0.0
    [ 18.207] Module class: X.Org Video Driver
    [ 18.217] (II) LoadModule: "modesetting"
    [ 18.217] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
    [ 18.223] (II) Module modesetting: vendor="X.Org Foundation"
    [ 18.223] compiled for 1.15.0, module version = 0.8.1
    [ 18.223] Module class: X.Org Video Driver
    [ 18.223] ABI class: X.Org Video Driver, version 15.0
    [ 18.224] (II) NVIDIA dlloader X Driver 337.12 Fri Apr 4 14:10:20 PDT 2014
    [ 18.224] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
    [ 18.225] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
    [ 18.225] (++) using VT number 1
    [ 18.227] (II) Loading sub module "fb"
    [ 18.227] (II) LoadModule: "fb"
    [ 18.227] (II) Loading /usr/lib/xorg/modules/libfb.so
    [ 18.234] (II) Module fb: vendor="X.Org Foundation"
    [ 18.234] compiled for 1.15.1, module version = 1.0.0
    [ 18.234] ABI class: X.Org ANSI C Emulation, version 0.4
    [ 18.234] (WW) Unresolved symbol: fbGetGCPrivateKey
    [ 18.234] (II) Loading sub module "wfb"
    [ 18.234] (II) LoadModule: "wfb"
    [ 18.235] (II) Loading /usr/lib/xorg/modules/libwfb.so
    [ 18.237] (II) Module wfb: vendor="X.Org Foundation"
    [ 18.237] compiled for 1.15.1, module version = 1.0.0
    [ 18.237] ABI class: X.Org ANSI C Emulation, version 0.4
    [ 18.237] (II) Loading sub module "ramdac"
    [ 18.237] (II) LoadModule: "ramdac"
    [ 18.237] (II) Module "ramdac" already built-in
    [ 18.240] (II) modesetting(1): using drv /dev/dri/card0
    [ 18.240] (II) modesetting(G0): using drv /dev/dri/card0
    [ 18.240] (EE) Screen 1 deleted because of no matching config section.
    [ 18.240] (II) UnloadModule: "modesetting"
    [ 18.240] (II) NVIDIA(0): Creating default Display subsection in Screen section
    "nvidia" for depth/fbbpp 24/32
    [ 18.240] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
    [ 18.240] (==) NVIDIA(0): RGB weight 888
    [ 18.240] (==) NVIDIA(0): Default visual is TrueColor
    [ 18.240] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
    [ 18.241] (**) NVIDIA(0): Enabling 2D acceleration
    [ 24.989] (WW) NVIDIA(0): Unable to read EDID for display device CRT-0
    [ 24.989] (II) NVIDIA(GPU-0): Found DRM driver nvidia-drm (20130102)
    [ 24.992] (II) NVIDIA(0): NVIDIA GPU GeForce GT 540M (GF108) at PCI:1:0:0 (GPU-0)
    [ 24.992] (--) NVIDIA(0): Memory: 1048576 kBytes
    [ 24.992] (--) NVIDIA(0): VideoBIOS: 70.08.3c.00.19
    [ 24.992] (II) NVIDIA(0): Detected PCI Express Link width: 16X
    [ 24.997] (--) NVIDIA(0): Valid display device(s) on GeForce GT 540M at PCI:1:0:0
    [ 24.997] (--) NVIDIA(0): CRT-0 (boot, connected)
    [ 24.997] (--) NVIDIA(0): DFP-0
    [ 24.997] (--) NVIDIA(0): DFP-1
    [ 24.997] (--) NVIDIA(GPU-0): CRT-0: 400.0 MHz maximum pixel clock
    [ 24.997] (--) NVIDIA(0): DFP-0: Internal LVDS
    [ 24.997] (--) NVIDIA(GPU-0): DFP-0: 330.0 MHz maximum pixel clock
    [ 24.997] (--) NVIDIA(0): DFP-1: Internal TMDS
    [ 24.997] (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
    [ 24.997] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
    [ 24.997] (**) NVIDIA(0): device CRT-0 (Using EDID frequencies has been enabled on
    [ 24.997] (**) NVIDIA(0): all display devices.)
    [ 25.000] (==) NVIDIA(0):
    [ 25.000] (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
    [ 25.000] (==) NVIDIA(0): will be used as the requested mode.
    [ 25.000] (==) NVIDIA(0):
    [ 25.001] (II) NVIDIA(0): Validated MetaModes:
    [ 25.001] (II) NVIDIA(0): "CRT-0:nvidia-auto-select"
    [ 25.001] (II) NVIDIA(0): Virtual screen size determined to be 1024 x 768
    [ 25.006] (WW) NVIDIA(0): Unable to get display device CRT-0's EDID; cannot compute DPI
    [ 25.006] (WW) NVIDIA(0): from CRT-0's EDID.
    [ 25.006] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
    [ 25.006] (==) modesetting(G0): Depth 24, (==) framebuffer bpp 32
    [ 25.006] (==) modesetting(G0): RGB weight 888
    [ 25.006] (==) modesetting(G0): Default visual is TrueColor
    [ 25.006] (II) modesetting(G0): ShadowFB: preferred YES, enabled YES
    [ 25.006] (II) modesetting(G0): Output LVDS-1-0 has no monitor section
    [ 25.008] (II) modesetting(G0): Output VGA-1-0 has no monitor section
    [ 25.009] (II) modesetting(G0): Output HDMI-1-0 has no monitor section
    [ 25.009] (II) modesetting(G0): Output DisplayPort-1-0 has no monitor section
    [ 25.009] (II) modesetting(G0): EDID for output LVDS-1-0
    [ 25.009] (II) modesetting(G0): Manufacturer: AUO Model: 22ec Serial#: 0
    [ 25.009] (II) modesetting(G0): Year: 2009 Week: 1
    [ 25.009] (II) modesetting(G0): EDID Version: 1.3
    [ 25.009] (II) modesetting(G0): Digital Display Input
    [ 25.009] (II) modesetting(G0): Max Image Size [cm]: horiz.: 34 vert.: 19
    [ 25.009] (II) modesetting(G0): Gamma: 2.20
    [ 25.009] (II) modesetting(G0): No DPMS capabilities specified
    [ 25.009] (II) modesetting(G0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4
    [ 25.009] (II) modesetting(G0): First detailed timing is preferred mode
    [ 25.009] (II) modesetting(G0): redX: 0.620 redY: 0.340 greenX: 0.330 greenY: 0.570
    [ 25.009] (II) modesetting(G0): blueX: 0.150 blueY: 0.060 whiteX: 0.313 whiteY: 0.329
    [ 25.009] (II) modesetting(G0): Manufacturer's mask: 0
    [ 25.009] (II) modesetting(G0): Supported detailed timing:
    [ 25.009] (II) modesetting(G0): clock: 69.3 MHz Image Size: 344 x 193 mm
    [ 25.009] (II) modesetting(G0): h_active: 1366 h_sync: 1398 h_sync_end 1422 h_blank_end 1432 h_border: 0
    [ 25.009] (II) modesetting(G0): v_active: 768 v_sync: 771 v_sync_end 775 v_blanking: 806 v_border: 0
    [ 25.009] (II) modesetting(G0): Unknown vendor-specific block f
    [ 25.009] (II) modesetting(G0): AUO
    [ 25.009] (II) modesetting(G0): B156XW02 V2
    [ 25.009] (II) modesetting(G0): EDID (in hex):
    [ 25.009] (II) modesetting(G0): 00ffffffffffff0006afec2200000000
    [ 25.009] (II) modesetting(G0): 01130103802213780ac8959e57549226
    [ 25.009] (II) modesetting(G0): 0f505400000001010101010101010101
    [ 25.009] (II) modesetting(G0): 010101010101121b5642500026302018
    [ 25.009] (II) modesetting(G0): 340058c1100000180000000f00000000
    [ 25.009] (II) modesetting(G0): 00000000000000000020000000fe0041
    [ 25.009] (II) modesetting(G0): 554f0a202020202020202020000000fe
    [ 25.009] (II) modesetting(G0): 004231353658573032205632200a00c0
    [ 25.009] (II) modesetting(G0): Printing probed modes for output LVDS-1-0
    [ 25.009] (II) modesetting(G0): Modeline "1366x768"x60.0 69.30 1366 1398 1422 1432 768 771 775 806 -hsync -vsync (48.4 kHz eP)
    [ 25.009] (II) modesetting(G0): Modeline "1024x768"x120.1 133.47 1024 1100 1212 1400 768 768 770 794 doublescan -hsync +vsync (95.3 kHz d)
    [ 25.009] (II) modesetting(G0): Modeline "1024x768"x60.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz d)
    [ 25.009] (II) modesetting(G0): Modeline "960x720"x120.0 117.00 960 1024 1128 1300 720 720 722 750 doublescan -hsync +vsync (90.0 kHz d)
    [ 25.009] (II) modesetting(G0): Modeline "928x696"x120.1 109.15 928 976 1088 1264 696 696 698 719 doublescan -hsync +vsync (86.4 kHz d)
    [ 25.009] (II) modesetting(G0): Modeline "896x672"x120.0 102.40 896 960 1060 1224 672 672 674 697 doublescan -hsync +vsync (83.7 kHz d)
    [ 25.009] (II) modesetting(G0): Modeline "800x600"x120.0 81.00 800 832 928 1080 600 600 602 625 doublescan +hsync +vsync (75.0 kHz d)
    [ 25.009] (II) modesetting(G0): Modeline "800x600"x60.3 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz d)
    [ 25.009] (II) modesetting(G0): Modeline "800x600"x56.2 36.00 800 824 896 1024 600 601 603 625 +hsync +vsync (35.2 kHz d)
    [ 25.009] (II) modesetting(G0): Modeline "700x525"x120.0 61.00 700 744 820 940 525 526 532 541 doublescan +hsync +vsync (64.9 kHz d)
    [ 25.009] (II) modesetting(G0): Modeline "640x512"x120.0 54.00 640 664 720 844 512 512 514 533 doublescan +hsync +vsync (64.0 kHz d)
    [ 25.010] (II) modesetting(G0): Modeline "640x480"x120.0 54.00 640 688 744 900 480 480 482 500 doublescan +hsync +vsync (60.0 kHz d)
    [ 25.010] (II) modesetting(G0): Modeline "640x480"x59.9 25.18 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz d)
    [ 25.010] (II) modesetting(G0): Modeline "512x384"x120.0 32.50 512 524 592 672 384 385 388 403 doublescan -hsync -vsync (48.4 kHz d)
    [ 25.010] (II) modesetting(G0): Modeline "400x300"x120.6 20.00 400 420 484 528 300 300 302 314 doublescan +hsync +vsync (37.9 kHz d)
    [ 25.010] (II) modesetting(G0): Modeline "400x300"x112.7 18.00 400 412 448 512 300 300 301 312 doublescan +hsync +vsync (35.2 kHz d)
    [ 25.010] (II) modesetting(G0): Modeline "320x240"x120.1 12.59 320 328 376 400 240 245 246 262 doublescan -hsync -vsync (31.5 kHz d)
    [ 25.011] (II) modesetting(G0): EDID for output VGA-1-0
    [ 25.011] (II) modesetting(G0): EDID for output HDMI-1-0
    [ 25.011] (II) modesetting(G0): EDID for output DisplayPort-1-0
    [ 25.011] (II) modesetting(G0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
    [ 25.011] (==) modesetting(G0): DPI set to (96, 96)
    [ 25.011] (II) Loading sub module "fb"
    [ 25.012] (II) LoadModule: "fb"
    [ 25.012] (II) Loading /usr/lib/xorg/modules/libfb.so
    [ 25.012] (II) Module fb: vendor="X.Org Foundation"
    [ 25.012] compiled for 1.15.1, module version = 1.0.0
    [ 25.012] ABI class: X.Org ANSI C Emulation, version 0.4
    [ 25.012] (II) Loading sub module "shadow"
    [ 25.012] (II) LoadModule: "shadow"
    [ 25.012] (II) Loading /usr/lib/xorg/modules/libshadow.so
    [ 25.022] (II) Module shadow: vendor="X.Org Foundation"
    [ 25.022] compiled for 1.15.1, module version = 1.1.0
    [ 25.023] ABI class: X.Org ANSI C Emulation, version 0.4
    [ 25.023] (--) Depth 24 pixmap format is 32 bpp
    [ 25.033] (==) modesetting(G0): Backing store enabled
    [ 25.033] (==) modesetting(G0): Silken mouse enabled
    [ 25.033] (II) modesetting(G0): RandR 1.2 enabled, ignore the following RandR disabled message.
    [ 25.034] (==) modesetting(G0): DPMS enabled
    [ 25.334] (II) NVIDIA: Using 1024.00 MB of virtual memory for indirect memory
    [ 25.334] (II) NVIDIA: access.
    [ 25.553] (II) NVIDIA(0): Setting mode "CRT-0:nvidia-auto-select"
    [ 25.627] Loading extension NV-GLX
    [ 25.723] (==) NVIDIA(0): Disabling shared memory pixmaps
    [ 25.723] (==) NVIDIA(0): Backing store enabled
    [ 25.723] (==) NVIDIA(0): Silken mouse enabled
    [ 25.724] (==) NVIDIA(0): DPMS enabled
    [ 25.724] Loading extension NV-CONTROL
    [ 25.724] Loading extension XINERAMA
    [ 25.724] (II) Loading sub module "dri2"
    [ 25.724] (II) LoadModule: "dri2"
    [ 25.724] (II) Module "dri2" already built-in
    [ 25.724] (II) NVIDIA(0): [DRI2] Setup complete
    [ 25.724] (II) NVIDIA(0): [DRI2] VDPAU driver: nvidia
    [ 25.725] (--) RandR disabled
    [ 25.756] (II) Initializing extension GLX
    [ 25.760] (II) modesetting(G0): Damage tracking initialized
    [ 26.052] (II) config/udev: Adding input device Power Button (/dev/input/event4)
    [ 26.052] (**) Power Button: Applying InputClass "evdev keyboard catchall"
    [ 26.052] (II) LoadModule: "evdev"
    [ 26.078] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
    [ 26.081] (II) Module evdev: vendor="X.Org Foundation"
    [ 26.081] compiled for 1.15.0, module version = 2.8.2
    [ 26.081] Module class: X.Org XInput Driver
    [ 26.081] ABI class: X.Org XInput driver, version 20.0
    [ 26.081] (II) Using input driver 'evdev' for 'Power Button'
    [ 26.081] (**) Power Button: always reports core events
    [ 26.081] (**) evdev: Power Button: Device: "/dev/input/event4"
    [ 26.081] (--) evdev: Power Button: Vendor 0 Product 0x1
    [ 26.081] (--) evdev: Power Button: Found keys
    [ 26.081] (II) evdev: Power Button: Configuring as keyboard
    [ 26.081] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input5/event4"
    [ 26.081] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
    [ 26.081] (**) Option "xkb_rules" "evdev"
    [ 26.081] (**) Option "xkb_model" "pc104"
    [ 26.081] (**) Option "xkb_layout" "us"
    [ 26.136] (II) config/udev: Adding input device Video Bus (/dev/input/event13)
    [ 26.136] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
    [ 26.136] (II) Using input driver 'evdev' for 'Video Bus'
    [ 26.136] (**) Video Bus: always reports core events
    [ 26.136] (**) evdev: Video Bus: Device: "/dev/input/event13"
    [ 26.136] (--) evdev: Video Bus: Vendor 0 Product 0x6
    [ 26.136] (--) evdev: Video Bus: Found keys
    [ 26.136] (II) evdev: Video Bus: Configuring as keyboard
    [ 26.136] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:00/input/input15/event13"
    [ 26.136] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
    [ 26.136] (**) Option "xkb_rules" "evdev"
    [ 26.136] (**) Option "xkb_model" "pc104"
    [ 26.136] (**) Option "xkb_layout" "us"
    [ 26.137] (II) config/udev: Adding input device Power Button (/dev/input/event1)
    [ 26.137] (**) Power Button: Applying InputClass "evdev keyboard catchall"
    [ 26.137] (II) Using input driver 'evdev' for 'Power Button'
    [ 26.137] (**) Power Button: always reports core events
    [ 26.137] (**) evdev: Power Button: Device: "/dev/input/event1"
    [ 26.138] (--) evdev: Power Button: Vendor 0 Product 0x1
    [ 26.138] (--) evdev: Power Button: Found keys
    [ 26.138] (II) evdev: Power Button: Configuring as keyboard
    [ 26.138] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:02/PNP0C0C:00/input/input2/event1"
    [ 26.138] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 8)
    [ 26.138] (**) Option "xkb_rules" "evdev"
    [ 26.138] (**) Option "xkb_model" "pc104"
    [ 26.138] (**) Option "xkb_layout" "us"
    [ 26.139] (II) config/udev: Adding input device Lid Switch (/dev/input/event2)
    [ 26.139] (II) No input driver specified, ignoring this device.
    [ 26.139] (II) This device may have been added with another device file.
    [ 26.139] (II) config/udev: Adding input device Sleep Button (/dev/input/event3)
    [ 26.139] (**) Sleep Button: Applying InputClass "evdev keyboard catchall"
    [ 26.139] (II) Using input driver 'evdev' for 'Sleep Button'
    [ 26.140] (**) Sleep Button: always reports core events
    [ 26.140] (**) evdev: Sleep Button: Device: "/dev/input/event3"
    [ 26.140] (--) evdev: Sleep Button: Vendor 0 Product 0x3
    [ 26.140] (--) evdev: Sleep Button: Found keys
    [ 26.140] (II) evdev: Sleep Button: Configuring as keyboard
    [ 26.140] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:02/PNP0C0E:00/input/input4/event3"
    [ 26.140] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 9)
    [ 26.140] (**) Option "xkb_rules" "evdev"
    [ 26.140] (**) Option "xkb_model" "pc104"
    [ 26.140] (**) Option "xkb_layout" "us"
    [ 26.141] (II) config/udev: Adding input device Video Bus (/dev/input/event14)
    [ 26.141] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
    [ 26.141] (II) Using input driver 'evdev' for 'Video Bus'
    [ 26.141] (**) Video Bus: always reports core events
    [ 26.141] (**) evdev: Video Bus: Device: "/dev/input/event14"
    [ 26.141] (--) evdev: Video Bus: Vendor 0 Product 0x6
    [ 26.141] (--) evdev: Video Bus: Found keys
    [ 26.141] (II) evdev: Video Bus: Configuring as keyboard
    [ 26.141] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:35/LNXVIDEO:01/input/input16/event14"
    [ 26.141] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 10)
    [ 26.141] (**) Option "xkb_rules" "evdev"
    [ 26.141] (**) Option "xkb_model" "pc104"
    [ 26.141] (**) Option "xkb_layout" "us"
    [ 26.142] (II) config/udev: Adding drm device (/dev/dri/card1)
    [ 26.142] (II) config/udev: Adding drm device (/dev/dri/card0)
    [ 26.143] (II) config/udev: Adding input device 1.3M HD WebCam (/dev/input/event8)
    [ 26.143] (**) 1.3M HD WebCam: Applying InputClass "evdev keyboard catchall"
    [ 26.143] (II) Using input driver 'evdev' for '1.3M HD WebCam'
    [ 26.143] (**) 1.3M HD WebCam: always reports core events
    [ 26.143] (**) evdev: 1.3M HD WebCam: Device: "/dev/input/event8"
    [ 26.143] (--) evdev: 1.3M HD WebCam: Vendor 0x58f Product 0xb002
    [ 26.143] (--) evdev: 1.3M HD WebCam: Found keys
    [ 26.143] (II) evdev: 1.3M HD WebCam: Configuring as keyboard
    [ 26.143] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3/1-1.3:1.0/input/input10/event8"
    [ 26.143] (II) XINPUT: Adding extended input device "1.3M HD WebCam" (type: KEYBOARD, id 11)
    [ 26.143] (**) Option "xkb_rules" "evdev"
    [ 26.143] (**) Option "xkb_model" "pc104"
    [ 26.143] (**) Option "xkb_layout" "us"
    [ 26.144] (II) config/udev: Adding input device HDA Digital PCBeep (/dev/input/event9)
    [ 26.144] (II) No input driver specified, ignoring this device.
    [ 26.144] (II) This device may have been added with another device file.
    [ 26.145] (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event12)
    [ 26.145] (II) No input driver specified, ignoring this device.
    [ 26.145] (II) This device may have been added with another device file.
    [ 26.145] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event11)
    [ 26.145] (II) No input driver specified, ignoring this device.
    [ 26.146] (II) This device may have been added with another device file.
    [ 26.146] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=3 (/dev/input/event10)
    [ 26.146] (II) No input driver specified, ignoring this device.
    [ 26.146] (II) This device may have been added with another device file.
    [ 26.147] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
    [ 26.147] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
    [ 26.147] (II) Using input driver 'evdev' for 'AT Translated Set 2 keyboard'
    [ 26.147] (**) AT Translated Set 2 keyboard: always reports core events
    [ 26.147] (**) evdev: AT Translated Set 2 keyboard: Device: "/dev/input/event0"
    [ 26.147] (--) evdev: AT Translated Set 2 keyboard: Vendor 0x1 Product 0x1
    [ 26.147] (--) evdev: AT Translated Set 2 keyboard: Found keys
    [ 26.147] (II) evdev: AT Translated Set 2 keyboard: Configuring as keyboard
    [ 26.147] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input0/event0"
    [ 26.147] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 12)
    [ 26.147] (**) Option "xkb_rules" "evdev"
    [ 26.147] (**) Option "xkb_model" "pc104"
    [ 26.147] (**) Option "xkb_layout" "us"
    [ 26.148] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/event15)
    [ 26.148] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "evdev touchpad catchall"
    [ 26.148] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "touchpad catchall"
    [ 26.148] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "Default clickpad buttons"
    [ 26.148] (II) LoadModule: "synaptics"
    [ 26.148] (II) Loading /usr/lib/xorg/modules/input/synaptics_drv.so
    [ 26.158] (II) Module synaptics: vendor="X.Org Foundation"
    [ 26.158] compiled for 1.15.0, module version = 1.7.4
    [ 26.158] Module class: X.Org XInput Driver
    [ 26.158] ABI class: X.Org XInput driver, version 20.0
    [ 26.158] (II) Using input driver 'synaptics' for 'SynPS/2 Synaptics TouchPad'
    [ 26.158] (**) SynPS/2 Synaptics TouchPad: always reports core events
    [ 26.158] (**) Option "Device" "/dev/input/event15"
    [ 26.316] (II) synaptics: SynPS/2 Synaptics TouchPad: ignoring touch events for semi-multitouch device
    [ 26.317] (--) synaptics: SynPS/2 Synaptics TouchPad: x-axis range 1472 - 5774 (res 56)
    [ 26.317] (--) synaptics: SynPS/2 Synaptics TouchPad: y-axis range 1408 - 5022 (res 105)
    [ 26.317] (--) synaptics: SynPS/2 Synaptics TouchPad: pressure range 0 - 255
    [ 26.317] (--) synaptics: SynPS/2 Synaptics TouchPad: finger width range 0 - 15
    [ 26.317] (--) synaptics: SynPS/2 Synaptics TouchPad: buttons: left right double triple
    [ 26.317] (--) synaptics: SynPS/2 Synaptics TouchPad: Vendor 0x2 Product 0x7
    [ 26.317] (**) Option "TapButton1" "1"
    [ 26.317] (**) Option "TapButton2" "2"
    [ 26.317] (**) Option "TapButton3" "3"
    [ 26.317] (--) synaptics: SynPS/2 Synaptics TouchPad: touchpad found
    [ 26.317] (**) SynPS/2 Synaptics TouchPad: always reports core events
    [ 26.370] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input9/event15"
    [ 26.370] (II) XINPUT: Adding extended input device "SynPS/2 Synaptics TouchPad" (type: TOUCHPAD, id 13)
    [ 26.370] (**) synaptics: SynPS/2 Synaptics TouchPad: (accel) MinSpeed is now constant deceleration 2.5
    [ 26.370] (**) synaptics: SynPS/2 Synaptics TouchPad: (accel) MaxSpeed is now 1.75
    [ 26.370] (**) synaptics: SynPS/2 Synaptics TouchPad: (accel) AccelFactor is now 0.036
    [ 26.370] (**) SynPS/2 Synaptics TouchPad: (accel) keeping acceleration scheme 1
    [ 26.370] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration profile 1
    [ 26.371] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration factor: 2.000
    [ 26.371] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration threshold: 4
    [ 26.371] (--) synaptics: SynPS/2 Synaptics TouchPad: touchpad found
    [ 26.371] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/mouse0)
    [ 26.371] (**) SynPS/2 Synaptics TouchPad: Ignoring device from InputClass "touchpad ignore duplicates"
    [ 26.372] (II) config/udev: Adding input device PC Speaker (/dev/input/event5)
    [ 26.372] (II) No input driver specified, ignoring this device.
    [ 26.372] (II) This device may have been added with another device file.
    [ 26.373] (II) config/udev: Adding input device Acer WMI hotkeys (/dev/input/event6)
    [ 26.373] (**) Acer WMI hotkeys: Applying InputClass "evdev keyboard catchall"
    [ 26.373] (II) Using input driver 'evdev' for 'Acer WMI hotkeys'
    [ 26.373] (**) Acer WMI hotkeys: always reports core events
    [ 26.373] (**) evdev: Acer WMI hotkeys: Device: "/dev/input/event6"
    [ 26.373] (--) evdev: Acer WMI hotkeys: Vendor 0 Product 0
    [ 26.373] (--) evdev: Acer WMI hotkeys: Found keys
    [ 26.373] (II) evdev: Acer WMI hotkeys: Configuring as keyboard
    [ 26.373] (**) Option "config_info" "udev:/sys/devices/virtual/input/input7/event6"
    [ 26.373] (II) XINPUT: Adding extended input device "Acer WMI hotkeys" (type: KEYBOARD, id 14)
    [ 26.373] (**) Option "xkb_rules" "evdev"
    [ 26.373] (**) Option "xkb_model" "pc104"
    [ 26.373] (**) Option "xkb_layout" "us"
    [ 26.374] (II) config/udev: Adding input device Acer BMA150 accelerometer (/dev/input/event7)
    [ 26.374] (II) No input driver specified, ignoring this device.
    [ 26.374] (II) This device may have been added with another device file.
    [ 26.375] (II) config/udev: Adding input device Acer BMA150 accelerometer (/dev/input/js0)
    [ 26.375] (II) No input driver specified, ignoring this device.
    [ 26.375] (II) This device may have been added with another device file.
    [ 26.489] (WW) NVIDIA(GPU-0): Unable to read EDID for display device CRT-0
    [ 26.507] (WW) NVIDIA(GPU-0): Unable to read EDID for display device CRT-0
    [ 26.573] (WW) NVIDIA(GPU-0): Unable to read EDID for display device CRT-0
    [ 27.186] (II) evdev: Acer WMI hotkeys: Close
    [ 27.186] (II) UnloadModule: "evdev"
    [ 27.187] (II) UnloadModule: "synaptics"
    [ 27.187] (II) evdev: AT Translated Set 2 keyboard: Close
    [ 27.187] (II) UnloadModule: "evdev"
    [ 27.187] (II) evdev: 1.3M HD WebCam: Close
    [ 27.187] (II) UnloadModule: "evdev"
    [ 27.187] (II) evdev: Video Bus: Close
    [ 27.187] (II) UnloadModule: "evdev"
    [ 27.187] (II) evdev: Sleep Button: Close
    [ 27.187] (II) UnloadModule: "evdev"
    [ 27.187] (II) evdev: Power Button: Close
    [ 27.187] (II) UnloadModule: "evdev"
    [ 27.187] (II) evdev: Video Bus: Close
    [ 27.187] (II) UnloadModule: "evdev"
    [ 27.187] (II) evdev: Power Button: Close
    [ 27.187] (II) UnloadModule: "evdev"
    [ 27.254] (II) NVIDIA(GPU-0): Deleting GPU-0
    [ 27.404] (EE) Server terminated successfully (0). Closing log file.
    It is still not working.
    Last edited by hozturk0327 (2014-04-28 14:08:41)

  • [SOLVED] how to add python-imaging ?

    I'm new to Arch Linux but i'm wanting to make a Zope/Plone CMS server run on it.
    I will install it from tarballs then configure my pre-existing portail (plone instance)
    Now for some products I'll need to have some libraries running fine on my AL server station, like libxml2, libxlst, etc.. I found most of them are obtainable on current & extra repositories
    But some of the zope products i use need the server to have python Imaging (PIL) capabilities, and i couldn't find PIL / python-imaging packages in repositories.
    I may also compile it from sources, but this make need some times (computer is an old PII Deschuttes) and i'd like to escape this
    Searched on forums and found an interesting post on it : pil (in AUR Package Requests) and a PKGBUILD.
    Well, that would be fine if only i knew how to deal with such a PKGBUILD :oops:
    the 2nd one was made for python-2.3* but i presume this would be easily editable ?
    Now please where can i learn how to use such a PKGBUILD ?
    mkdir -p $startdir/pkg/usr/include/python2.3/

    Yes it is in 'community'
    I couldn't find before, not only because i do plan to use "conservative" mirrors (well, that PC's a server, not for individual testing), but also i did not know yet www.archlinux.org/packages.php does not include 'community' packages.
    I also launched '/usr/bin/sortmirrors' script that re-order the mirrors according to fastest ping/traceroute results.
    Thank you for the tip indeed

  • Mount-Content Database give Action 4.0.32.0 of Microsoft.SharePoint.Upgrade.SPContentDatabaseSequence failed. error

    hi all,
    while attaching content database to SharePoint 2010 I am getting this error. Please help me to solve this issue.
    [powershell] [SPContentDatabaseSequence] [ERROR] [2/26/2014 6:58:44 PM]: Action 4.0.32.0 of Microsoft.SharePoint.Upgrade.SPContentDatabaseSequence failed.
    [powershell] [SPContentDatabaseSequence] [ERROR] [2/26/2014 6:58:44 PM]: Exception: The Database ID 7, Page (1:12779100), slot 1 for LOB data type node does not exist. This is usually caused by transactions that can read uncommitted data on a data page. Run
    DBCC CHECKTABLE.
    [powershell] [SPContentDatabaseSequence] [ERROR] [2/26/2014 6:58:44 PM]:    at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
       at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async)
       at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
       at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
       at Microsoft.SharePoint.Utilities.SqlSession.ExecuteNonQuery(SqlCommand command)
       at Microsoft.SharePoint.Upgrade.SPDatabaseSequence.ExecuteDataDefinitionMethodCore(SqlSession sqlSession, ISqlSession isqlSession, String sqlscript, SPLog log)
       at Microsoft.SharePoint.Upgrade.AlterToNewLOBType.Upgrade()
       at Microsoft.SharePoint.Upgrade.SPActionSequence.Upgrade()
    [powershell] [AlterToNewLOBType (4.0.32.0)] [DEBUG] [2/26/2014 6:58:44 PM]: Begin Rollback()
    [powershell] [SPContentDatabaseSequence] [ERROR] [2/26/2014 6:58:44 PM]: Action 4.0.32.0 of Microsoft.SharePoint.Upgrade.SPContentDatabaseSequence failed to rollback.
    [powershell] [SPContentDatabaseSequence] [ERROR] [2/26/2014 6:58:44 PM]: Exception: This SqlTransaction has completed; it is no longer usable.
    [powershell] [SPContentDatabaseSequence] [ERROR] [2/26/2014 6:58:44 PM]:    at System.Data.SqlClient.SqlTransaction.ZombieCheck()
       at System.Data.SqlClient.SqlTransaction.Rollback(String transactionName)
       at Microsoft.SharePoint.Utilities.TransactionalSqlSession.Rollback()
       at Microsoft.SharePoint.Upgrade.SPDatabaseAction.Rollback()
       at Microsoft.SharePoint.Upgrade.SPActionSequence.Upgrade()

    hi Eric,
    Thanks for your reply. using the system_health Extended Events session I got following error.
    <RingBufferTarget eventsPerSec="200" processingTime="40" totalEventsProcessed="8" eventCount="8" droppedCount="0" memoryUsed="81220">
    <event name="error_reported" package="sqlserver" id="100" version="1" timestamp="2014-02-26T11:33:07.028Z">
    <data name="error">
    <type name="int32" package="package0" />
    <value>17830</value>
    <text />
    </data>
    <data name="severity">
    <type name="int32" package="package0" />
    <value>20</value>
    <text />
    </data>
    <data name="state">
    <type name="int32" package="package0" />
    <value>11</value>
    <text />
    </data>
    <data name="user_defined">
    <type name="boolean" package="package0" />
    <value>false</value>
    <text />
    </data>
    <data name="message">
    <type name="unicode_string" package="package0" />
    <value>Network error code 0x2745 occurred while establishing a connection; the connection has been closed. This may have been caused by client or server login timeout expiration. Time spent during login: total 292 ms, enqueued 290 ms, network writes 0 ms, network reads 0 ms, establishing SSL 2 ms, negotiating SSPI 0 ms, validating login 0 ms, including user-defined login processing 0 ms. [CLIENT: 172.16.20.47]</value>
    <text />
    </data>
    <action name="callstack" package="package0">
    <type name="callstack" package="package0" />
    <value>0x0000000000CEDC3E
    0x000000000048BC65
    0x000000000048BA60
    0x00000000024AEE2E
    0x000000000179DD7E
    0x0000000000A5FF35
    0x000000000045CCA8
    0x0000000000A5AA42
    0x000000000081FB5A
    0x000000000041BBD8
    0x000000000041B8BA
    0x000000000041B6FF
    0x0000000000938FB6
    0x0000000000939175
    0x0000000000939839
    0x0000000000939502</value>
    <text />
    </action>
    <action name="session_id" package="sqlserver">
    <type name="uint16" package="package0" />
    <value>0</value>
    <text />
    </action>
    <action name="sql_text" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value>Unable to retrieve SQL text</value>
    <text />
    </action>
    <action name="tsql_stack" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value>Unable to retrieve T-SQL stack</value>
    <text />
    </action>
    </event>
    <event name="error_reported" package="sqlserver" id="100" version="1" timestamp="2014-02-26T13:28:44.189Z">
    <data name="error">
    <type name="int32" package="package0" />
    <value>7105</value>
    <text />
    </data>
    <data name="severity">
    <type name="int32" package="package0" />
    <value>22</value>
    <text />
    </data>
    <data name="state">
    <type name="int32" package="package0" />
    <value>6</value>
    <text />
    </data>
    <data name="user_defined">
    <type name="boolean" package="package0" />
    <value>false</value>
    <text />
    </data>
    <data name="message">
    <type name="unicode_string" package="package0" />
    <value>The Database ID 7, Page (1:12779100), slot 1 for LOB data type node does not exist. This is usually caused by transactions that can read uncommitted data on a data page. Run DBCC CHECKTABLE.</value>
    <text />
    </data>
    <action name="callstack" package="package0">
    <type name="callstack" package="package0" />
    <value>0x0000000000CEDC3E
    0x000000000048BC65
    0x000000000048BA60
    0x0000000000E1F5D0
    0x00000000008105B6
    0x000000000080F5D8
    0x000000000080F2A6
    0x00000000022F292D
    0x0000000000C60883
    0x000000000055D558
    0x000000000055D0C7
    0x000000000055CF1C
    0x0000000000560365
    0x0000000000560286
    0x000000000055FD36
    0x00000000005600F9</value>
    <text />
    </action>
    <action name="session_id" package="sqlserver">
    <type name="uint16" package="package0" />
    <value>54</value>
    <text />
    </action>
    <action name="sql_text" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value>UPDATE [dbo].[AllDocs] SET WelcomePageParameters = CASE WHEN WelcomePageParameters IS NOT NULL AND CONVERT(ntext,WelcomePageParameters) IS NULL THEN NULL ELSE WelcomePageParameters END,MetaInfo = CASE WHEN MetaInfo IS NOT NULL AND CONVERT(image,MetaInfo) IS NULL THEN NULL ELSE MetaInfo END,UnversionedMetaInfo = CASE WHEN UnversionedMetaInfo IS NOT NULL AND CONVERT(image,UnversionedMetaInfo) IS NULL THEN NULL ELSE UnversionedMetaInfo END,BuildDependencySet = CASE WHEN BuildDependencySet IS NOT NULL AND CONVERT(image,BuildDependencySet) IS NULL THEN NULL ELSE BuildDependencySet END,FileFormatMetaInfo = CASE WHEN FileFormatMetaInfo IS NOT NULL AND CONVERT(image,FileFormatMetaInfo) IS NULL THEN NULL ELSE FileFormatMetaInfo END WHERE datalength(WelcomePageParameters)=0 OR datalength(MetaInfo)=0 OR datalength(UnversionedMetaInfo)=0 OR datalength(BuildDependencySet)=0 OR datalength(FileFormatMetaInfo)=0 ;UPDATE [dbo].[AllDocStreams] SET Content = CASE WHEN Content IS NOT NULL AND CONVERT(image,Content) IS NULL THEN NULL ELSE Content END WHERE datalength(Content)=0 ;UPDATE [dbo].[AllDocVersions] SET MetaInfo = CASE WHEN MetaInfo IS NOT NULL AND CONVERT(image,MetaInfo) IS NULL THEN NULL ELSE MetaInfo END,Content = CASE WHEN Content IS NOT NULL AND CONVERT(image,Content) IS NULL THEN NULL ELSE Content END WHERE datalength(MetaInfo)=0 OR datalength(Content)=0 ;UPDATE [dbo].[AllLists] SET tp_Fields = CASE WHEN tp_Fields IS NOT NULL AND CONVERT(ntext,tp_Fields) IS NULL THEN NULL ELSE tp_Fields END,tp_ContentTypes = CASE WHEN tp_ContentTypes IS NOT NULL AND CONVERT(ntext,tp_ContentTypes) IS NULL THEN NULL ELSE tp_ContentTypes END WHERE datalength(tp_Fields)=0 OR datalength(tp_ContentTypes)=0 ;UPDATE [dbo].[AllWebParts] SET tp_View = CASE WHEN tp_View IS NOT NULL AND CONVERT(ntext,tp_View) IS NULL THEN NULL ELSE tp_View END,tp_Source = CASE WHEN tp_Source IS NOT NULL AND CONVERT(ntext,tp_Source) IS NULL THEN NULL ELSE tp_Source END,tp_AllUsersProperties = CASE WHEN tp_AllUsersProperties IS NOT NULL AND CONVERT(image,tp_AllUsersProperties) IS NULL THEN NULL ELSE tp_AllUsersProperties END,tp_PerUserProperties = CASE WHEN tp_PerUserProperties IS NOT NULL AND CONVERT(image,tp_PerUserProperties) IS NULL THEN NULL ELSE tp_PerUserProperties END,tp_Cache = CASE WHEN tp_Cache IS NOT NULL AND CONVERT(image,tp_Cache) IS NULL THEN NULL ELSE tp_Cache END WHERE datalength(tp_View)=0 OR datalength(tp_Source)=0 OR datalength(tp_AllUsersProperties)=0 OR datalength(tp_PerUserProperties)=0 OR datalength(tp_Cache)=0 ;UPDATE [dbo].[AuditData] SET EventData = CASE WHEN EventData IS NOT NULL AND CONVERT(ntext,EventData) IS NULL THEN NULL ELSE EventData END WHERE datalength(EventData)=0 ;UPDATE [dbo].[EventCache] SET EventData = CASE WHEN EventData IS NOT NULL AND CONVERT(image,EventData) IS NULL THEN NULL ELSE EventData END,ACL = CASE WHEN ACL IS NOT NULL AND CONVERT(image,ACL) IS NULL THEN NULL ELSE ACL END WHERE datalength(EventData)=0 OR datalength(ACL)=0 ;UPDATE [dbo].[EventLog] SET FormattedFragment = CASE WHEN FormattedFragment IS NOT NULL AND CONVERT(ntext,FormattedFragment) IS NULL THEN NULL ELSE FormattedFragment END,EventData = CASE WHEN EventData IS NOT NULL AND CONVERT(image,EventData) IS NULL THEN NULL ELSE EventData END WHERE datalength(FormattedFragment)=0 OR datalength(EventData)=0 ;UPDATE [dbo].[EventSubsMatches] SET LookupFieldPermissionResults = CASE WHEN LookupFieldPermissionResults IS NOT NULL AND CONVERT(image,LookupFieldPermissionResults) IS NULL THEN NULL ELSE LookupFieldPermissionResults END WHERE datalength(LookupFieldPermissionResults)=0 ;UPDATE [dbo].[Features] SET Properties = CASE WHEN Properties IS NOT NULL AND CONVERT(ntext,Properties) IS NULL THEN NULL ELSE Properties END WHERE datalength(Properties)=0 ;UPDATE [dbo].[HT_Cache] SET [File] = CASE WHEN [File] IS NOT NULL AND CONVERT(image,[File]) IS NULL THEN NULL ELSE [File] END WHERE datalength([File])=0 ;UPDATE [dbo].[ImmedSubscriptions] SET Properties = CASE WHEN Properties IS NOT NULL AND CONVERT(ntext,Properties) IS NULL THEN NULL ELSE Properties END WHERE datalength(Properties)=0 ;UPDATE [dbo].[NavNodes] SET NodeMetaInfo = CASE WHEN NodeMetaInfo IS NOT NULL AND CONVERT(image,NodeMetaInfo) IS NULL THEN NULL ELSE NodeMetaInfo END WHERE datalength(NodeMetaInfo)=0 ;UPDATE [dbo].[Perms] SET Acl = CASE WHEN Acl IS NOT NULL AND CONVERT(image,Acl) IS NULL THEN NULL ELSE Acl END WHERE datalength(Acl)=0 ;UPDATE [dbo].[Personalization] SET tp_PerUserProperties = CASE WHEN tp_PerUserProperties IS NOT NULL AND CONVERT(image,tp_PerUserProperties) IS NULL THEN NULL ELSE tp_PerUserProperties END,tp_Cache = CASE WHEN tp_Cache IS NOT NULL AND CONVERT(image,tp_Cache) IS NULL THEN NULL ELSE tp_Cache END WHERE datalength(tp_PerUserProperties)=0 OR datalength(tp_Cache)=0 ;UPDATE [dbo].[Resources] SET NtextVal = CASE WHEN NtextVal IS NOT NULL AND CONVERT(ntext,NtextVal) IS NULL THEN NULL ELSE NtextVal END WHERE datalength(NtextVal)=0 ;UPDATE [dbo].[Sites] SET DomainGroupMapCache = CASE WHEN DomainGroupMapCache IS NOT NULL AND CONVERT(image,DomainGroupMapCache) IS NULL THEN NULL ELSE DomainGroupMapCache END WHERE datalength(DomainGroupMapCache)=0 ;UPDATE [dbo].[Webs] SET CachedNavScope = CASE WHEN CachedNavScope IS NOT NULL AND CONVERT(ntext,CachedNavScope) IS NULL THEN NULL ELSE CachedNavScope END,Description = CASE WHEN Description IS NOT NULL AND CONVERT(ntext,Description) IS NULL THEN NULL ELSE Description END,CachedNav = CASE WHEN CachedNav IS NOT NULL AND CONVERT(image,CachedNav) IS NULL THEN NULL ELSE CachedNav END,CachedInheritedNav = CASE WHEN CachedInheritedNav IS NOT NULL AND CONVERT(image,CachedInheritedNav) IS NULL THEN NULL ELSE CachedInheritedNav END,MetaInfo = CASE WHEN MetaInfo IS NOT NULL AND CONVERT(image,MetaInfo) IS NULL THEN NULL ELSE MetaInfo END,DailyUsageData = CASE WHEN DailyUsageData IS NOT NULL AND CONVERT(image,DailyUsageData) IS NULL THEN NULL ELSE DailyUsageData END,MonthlyUsageData = CASE WHEN MonthlyUsageData IS NOT NULL AND CONVERT(image,MonthlyUsageData) IS NULL THEN NULL ELSE MonthlyUsageData END,Ancestry = CASE WHEN Ancestry IS NOT NULL AND CONVERT(image,Ancestry) IS NULL THEN NULL ELSE Ancestry END WHERE datalength(CachedNavScope)=0 OR datalength(Description)=0 OR datalength(CachedNav)=0 OR datalength(CachedInheritedNav)=0 OR datalength(MetaInfo)=0 OR datalength(DailyUsageData)=0 OR datalength(MonthlyUsageData)=0 OR datalength(Ancestry)=0 ;UPDATE [dbo].[SchedSubscriptions] SET Properties = CASE WHEN Properties IS NOT NULL AND CONVERT(ntext,Properties) IS NULL THEN NULL ELSE Properties END WHERE datalength(Properties)=0 ;UPDATE [dbo].[ScheduledWorkItems] SET TextPayload = CASE WHEN TextPayload IS NOT NULL AND CONVERT(ntext,TextPayload) IS NULL THEN NULL ELSE TextPayload END,BinaryPayload = CASE WHEN BinaryPayload IS NOT NULL AND CONVERT(image,BinaryPayload) IS NULL THEN NULL ELSE BinaryPayload END WHERE datalength(TextPayload)=0 OR datalength(BinaryPayload)=0 ;UPDATE [dbo].[UserInfo] SET tp_ExternalToken = CASE WHEN tp_ExternalToken IS NOT NULL AND CONVERT(image,tp_ExternalToken) IS NULL THEN NULL ELSE tp_ExternalToken END WHERE datalength(tp_ExternalToken)=0 ;UPDATE [dbo].[Workflow] SET Modifications = CASE WHEN Modifications IS NOT NULL AND CONVERT(ntext,Modifications) IS NULL THEN NULL ELSE Modifications END,InstanceData = CASE WHEN InstanceData IS NOT NULL AND CONVERT(image,InstanceData) IS NULL THEN NULL ELSE InstanceData END,History = CASE WHEN History IS NOT NULL AND CONVERT(image,History) IS NULL THEN NULL ELSE History END WHERE datalength(Modifications)=0 OR datalength(InstanceData)=0 OR datalength(History)=0 ;UPDATE [dbo].[WorkflowAssociation] SET InstantiationParams = CASE WHEN InstantiationParams IS NOT NULL AND CONVERT(ntext,InstantiationParams) IS NULL THEN NULL ELSE InstantiationParams END WHERE datalength(InstantiationParams)=0 ;UPDATE [dbo].[AllUserData] SET ntext1 = CASE WHEN ntext1 IS NOT NULL AND CONVERT(ntext,ntext1) IS NULL THEN NULL ELSE ntext1 END,ntext2 = CASE WHEN ntext2 IS NOT NULL AND CONVERT(ntext,ntext2) IS NULL THEN NULL ELSE ntext2 END,ntext3 = CASE WHEN ntext3 IS NOT NULL AND CONVERT(ntext,ntext3) IS NULL THEN NULL ELSE ntext3 END,ntext4 = CASE WHEN ntext4 IS NOT NULL AND CONVERT(ntext,ntext4) IS NULL THEN NULL ELSE ntext4 END,ntext5 = CASE WHEN ntext5 IS NOT NULL AND CONVERT(ntext,ntext5) IS NULL THEN NULL ELSE ntext5 END,ntext6 = CASE WHEN ntext6 IS NOT NULL AND CONVERT(ntext,ntext6) IS NULL THEN NULL ELSE ntext6 END,ntext7 = CASE WHEN ntext7 IS NOT NULL AND CONVERT(ntext,ntext7) IS NULL THEN NULL ELSE ntext7 END,ntext8 = CASE WHEN ntext8 IS NOT NULL AND CONVERT(ntext,ntext8) IS NULL THEN NULL ELSE ntext8 END,ntext9 = CASE WHEN ntext9 IS NOT NULL AND CONVERT(ntext,ntext9) IS NULL THEN NULL ELSE ntext9 END,ntext10 = CASE WHEN ntext10 IS NOT NULL AND CONVERT(ntext,ntext10) IS NULL THEN NULL ELSE ntext10 END,ntext11 = CASE WHEN ntext11 IS NOT NULL AND CONVERT(ntext,ntext11) IS NULL THEN NULL ELSE ntext11 END,ntext12 = CASE WHEN ntext12 IS NOT NULL AND CONVERT(ntext,ntext12) IS NULL THEN NULL ELSE ntext12 END,ntext13 = CASE WHEN ntext13 IS NOT NULL AND CONVERT(ntext,ntext13) IS NULL THEN NULL ELSE ntext13 END,ntext14 = CASE WHEN ntext14 IS NOT NULL AND CONVERT(ntext,ntext14) IS NULL THEN NULL ELSE ntext14 END,ntext15 = CASE WHEN ntext15 IS NOT NULL AND CONVERT(ntext,ntext15) IS NULL THEN NULL ELSE ntext15 END,ntext16 = CASE WHEN ntext16 IS NOT NULL AND CONVERT(ntext,ntext16) IS NULL THEN NULL ELSE ntext16 END,ntext17 = CASE WHEN ntext17 IS NOT NULL AND CONVERT(ntext,ntext17) IS NULL THEN NULL ELSE ntext17 END,ntext18 = CASE WHEN ntext18 IS NOT NULL AND CONVERT(ntext,ntext18) IS NULL THEN NULL ELSE ntext18 END,ntext19 = CASE WHEN ntext19 IS NOT NULL AND CONVERT(ntext,ntext19) IS NULL THEN NULL ELSE ntext19 END,ntext20 = CASE WHEN ntext20 IS NOT NULL AND CONVERT(ntext,ntext20) IS NULL THEN NULL ELSE ntext20 END,ntext21 = CASE WHEN ntext21 IS NOT NULL AND CONVERT(ntext,ntext21) IS NULL THEN NULL ELSE ntext21 END,ntext22 = CASE WHEN ntext22 IS NOT NULL AND CONVERT(ntext,ntext22) IS NULL THEN NULL ELSE ntext22 END,ntext23 = CASE WHEN ntext23 IS NOT NULL AND CONVERT(ntext,ntext23) IS NULL THEN NULL ELSE ntext23 END,ntext24 = CASE WHEN ntext24 IS NOT NULL AND CONVERT(ntext,ntext24) IS NULL THEN NULL ELSE ntext24 END,ntext25 = CASE WHEN ntext25 IS NOT NULL AND CONVERT(ntext,ntext25) IS NULL THEN NULL ELSE ntext25 END,ntext26 = CASE WHEN ntext26 IS NOT NULL AND CONVERT(ntext,ntext26) IS NULL THEN NULL ELSE ntext26 END,ntext27 = CASE WHEN ntext27 IS NOT NULL AND CONVERT(ntext,ntext27) IS NULL THEN NULL ELSE ntext27 END,ntext28 = CASE WHEN ntext28 IS NOT NULL AND CONVERT(ntext,ntext28) IS NULL THEN NULL ELSE ntext28 END,ntext29 = CASE WHEN ntext29 IS NOT NULL AND CONVERT(ntext,ntext29) IS NULL THEN NULL ELSE ntext29 END,ntext30 = CASE WHEN ntext30 IS NOT NULL AND CONVERT(ntext,ntext30) IS NULL THEN NULL ELSE ntext30 END,ntext31 = CASE WHEN ntext31 IS NOT NULL AND CONVERT(ntext,ntext31) IS NULL THEN NULL ELSE ntext31 END,ntext32 = CASE WHEN ntext32 IS NOT NULL AND CONVERT(ntext,ntext32) IS NULL THEN NULL ELSE ntext32 END WHERE datalength(ntext1)=0 OR datalength(ntext2)=0 OR datalength(ntext3)=0 OR datalength(ntext4)=0 OR datalength(ntext5)=0 OR datalength(ntext6)=0 OR datalength(ntext7)=0 OR datalength(ntext8)=0 OR datalength(ntext9)=0 OR datalength(ntext10)=0 OR datalength(ntext11)=0 OR datalength(ntext12)=0 OR datalength(ntext13)=0 OR datalength(ntext14)=0 OR datalength(ntext15)=0 OR datalength(ntext16)=0 OR datalength(ntext17)=0 OR datalength(ntext18)=0 OR datalength(ntext19)=0 OR datalength(ntext20)=0 OR datalength(ntext21)=0 OR datalength(ntext22)=0 OR datalength(ntext23)=0 OR datalength(ntext24)=0 OR datalength(ntext25)=0 OR datalength(ntext26)=0 OR datalength(ntext27)=0 OR datalength(ntext28)=0 OR datalength(ntext29)=0 OR datalength(ntext30)=0 OR datalength(ntext31)=0 OR datalength(ntext32)=0 ;</value>
    <text />
    </action>
    <action name="tsql_stack" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value>&lt;frame level='1' handle='0x02000000C81D290047D9F957FDC9CF5FB9CB20A5D2DF3857' line='1' offsetStart='1824' offsetEnd='2152'/&gt;</value>
    <text />
    </action>
    </event>
    <event name="wait_info" package="sqlos" id="48" version="1" timestamp="2014-02-26T13:28:44.308Z">
    <data name="wait_type">
    <type name="wait_types" package="sqlos" />
    <value>3</value>
    <text>LCK_M_S</text>
    </data>
    <data name="opcode">
    <type name="event_opcode" package="sqlos" />
    <value>1</value>
    <text>End</text>
    </data>
    <data name="duration">
    <type name="uint64" package="package0" />
    <value>461290</value>
    <text />
    </data>
    <data name="max_duration">
    <type name="uint64" package="package0" />
    <value>461290</value>
    <text />
    </data>
    <data name="total_duration">
    <type name="uint64" package="package0" />
    <value>493239</value>
    <text />
    </data>
    <data name="signal_duration">
    <type name="uint64" package="package0" />
    <value>0</value>
    <text />
    </data>
    <data name="completed_count">
    <type name="uint64" package="package0" />
    <value>21</value>
    <text />
    </data>
    <action name="callstack" package="package0">
    <type name="callstack" package="package0" />
    <value>0x0000000000CEDB7D
    0x00000000004141EA
    0x000000000041426D
    0x000000000041299E
    0x000000000094AE87
    0x00000000004FD533
    0x000000000043193F
    0x000000000043657E
    0x000000000094B45E
    0x0000000000446AE5
    0x00000000004472A9
    0x00000000004538C4
    0x0000000000448F9C
    0x0000000000453836
    0x00000000004540A0
    0x000000000045367F</value>
    <text />
    </action>
    <action name="session_id" package="sqlserver">
    <type name="uint16" package="package0" />
    <value>94</value>
    <text />
    </action>
    <action name="sql_text" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value>(@Version nvarchar(64) output)
    IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[Versions]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
    AND EXISTS (SELECT * FROM sysobjects join syscolumns on sysobjects.id = syscolumns.id WHERE sysobjects.name='Versions' and syscolumns.name = 'TimeStamp')
    BEGIN
    EXEC sp_executesql N'SELECT VersionId, Version FROM [dbo].[Versions] WITH (NOLOCK) ORDER BY VersionId, Id'
    END
    ELSE
    BEGIN
    SELECT NULL, NULL
    END
    </value>
    <text />
    </action>
    </event>
    <event name="wait_info" package="sqlos" id="48" version="1" timestamp="2014-02-26T13:28:44.310Z">
    <data name="wait_type">
    <type name="wait_types" package="sqlos" />
    <value>3</value>
    <text>LCK_M_S</text>
    </data>
    <data name="opcode">
    <type name="event_opcode" package="sqlos" />
    <value>1</value>
    <text>End</text>
    </data>
    <data name="duration">
    <type name="uint64" package="package0" />
    <value>500355</value>
    <text />
    </data>
    <data name="max_duration">
    <type name="uint64" package="package0" />
    <value>500355</value>
    <text />
    </data>
    <data name="total_duration">
    <type name="uint64" package="package0" />
    <value>993594</value>
    <text />
    </data>
    <data name="signal_duration">
    <type name="uint64" package="package0" />
    <value>2</value>
    <text />
    </data>
    <data name="completed_count">
    <type name="uint64" package="package0" />
    <value>22</value>
    <text />
    </data>
    <action name="callstack" package="package0">
    <type name="callstack" package="package0" />
    <value>0x0000000000CEDB7D
    0x00000000004141EA
    0x000000000041426D
    0x000000000041299E
    0x000000000094AE87
    0x00000000004FD533
    0x000000000043193F
    0x000000000043657E
    0x000000000094B45E
    0x0000000000446AE5
    0x00000000004472A9
    0x00000000004538C4
    0x0000000000448F9C
    0x0000000000453836
    0x00000000004540A0
    0x000000000045367F</value>
    <text />
    </action>
    <action name="session_id" package="sqlserver">
    <type name="uint16" package="package0" />
    <value>88</value>
    <text />
    </action>
    <action name="sql_text" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value>(@Version nvarchar(64) output)
    IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[Versions]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
    AND EXISTS (SELECT * FROM sysobjects join syscolumns on sysobjects.id = syscolumns.id WHERE sysobjects.name='Versions' and syscolumns.name = 'TimeStamp')
    BEGIN
    EXEC sp_executesql N'SELECT VersionId, Version FROM [dbo].[Versions] WITH (NOLOCK) ORDER BY VersionId, Id'
    END
    ELSE
    BEGIN
    SELECT NULL, NULL
    END
    </value>
    <text />
    </action>
    </event>
    <event name="error_reported" package="sqlserver" id="100" version="1" timestamp="2014-02-28T05:48:02.957Z">
    <data name="error">
    <type name="int32" package="package0" />
    <value>7105</value>
    <text />
    </data>
    <data name="severity">
    <type name="int32" package="package0" />
    <value>22</value>
    <text />
    </data>
    <data name="state">
    <type name="int32" package="package0" />
    <value>6</value>
    <text />
    </data>
    <data name="user_defined">
    <type name="boolean" package="package0" />
    <value>false</value>
    <text />
    </data>
    <data name="message">
    <type name="unicode_string" package="package0" />
    <value>The Database ID 7, Page (1:12779100), slot 1 for LOB data type node does not exist. This is usually caused by transactions that can read uncommitted data on a data page. Run DBCC CHECKTABLE.</value>
    <text />
    </data>
    <action name="callstack" package="package0">
    <type name="callstack" package="package0" />
    <value>0x0000000000CEDC3E
    0x000000000048BC65
    0x000000000048BA60
    0x0000000000E1F5D0
    0x00000000008105B6
    0x000000000080F5D8
    0x000000000080F2A6
    0x00000000022F292D
    0x0000000000C60883
    0x000000000055D558
    0x000000000055D0C7
    0x000000000055CF1C
    0x0000000000560365
    0x0000000000560286
    0x000000000055FD36
    0x00000000005600F9</value>
    <text />
    </action>
    <action name="session_id" package="sqlserver">
    <type name="uint16" package="package0" />
    <value>55</value>
    <text />
    </action>
    <action name="sql_text" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value>UPDATE [dbo].[AllDocs] SET WelcomePageParameters = CASE WHEN WelcomePageParameters IS NOT NULL AND CONVERT(ntext,WelcomePageParameters) IS NULL THEN NULL ELSE WelcomePageParameters END,MetaInfo = CASE WHEN MetaInfo IS NOT NULL AND CONVERT(image,MetaInfo) IS NULL THEN NULL ELSE MetaInfo END,UnversionedMetaInfo = CASE WHEN UnversionedMetaInfo IS NOT NULL AND CONVERT(image,UnversionedMetaInfo) IS NULL THEN NULL ELSE UnversionedMetaInfo END,BuildDependencySet = CASE WHEN BuildDependencySet IS NOT NULL AND CONVERT(image,BuildDependencySet) IS NULL THEN NULL ELSE BuildDependencySet END,FileFormatMetaInfo = CASE WHEN FileFormatMetaInfo IS NOT NULL AND CONVERT(image,FileFormatMetaInfo) IS NULL THEN NULL ELSE FileFormatMetaInfo END WHERE datalength(WelcomePageParameters)=0 OR datalength(MetaInfo)=0 OR datalength(UnversionedMetaInfo)=0 OR datalength(BuildDependencySet)=0 OR datalength(FileFormatMetaInfo)=0 ;UPDATE [dbo].[AllDocStreams] SET Content = CASE WHEN Content IS NOT NULL AND CONVERT(image,Content) IS NULL THEN NULL ELSE Content END WHERE datalength(Content)=0 ;UPDATE [dbo].[AllDocVersions] SET MetaInfo = CASE WHEN MetaInfo IS NOT NULL AND CONVERT(image,MetaInfo) IS NULL THEN NULL ELSE MetaInfo END,Content = CASE WHEN Content IS NOT NULL AND CONVERT(image,Content) IS NULL THEN NULL ELSE Content END WHERE datalength(MetaInfo)=0 OR datalength(Content)=0 ;UPDATE [dbo].[AllLists] SET tp_Fields = CASE WHEN tp_Fields IS NOT NULL AND CONVERT(ntext,tp_Fields) IS NULL THEN NULL ELSE tp_Fields END,tp_ContentTypes = CASE WHEN tp_ContentTypes IS NOT NULL AND CONVERT(ntext,tp_ContentTypes) IS NULL THEN NULL ELSE tp_ContentTypes END WHERE datalength(tp_Fields)=0 OR datalength(tp_ContentTypes)=0 ;UPDATE [dbo].[AllWebParts] SET tp_View = CASE WHEN tp_View IS NOT NULL AND CONVERT(ntext,tp_View) IS NULL THEN NULL ELSE tp_View END,tp_Source = CASE WHEN tp_Source IS NOT NULL AND CONVERT(ntext,tp_Source) IS NULL THEN NULL ELSE tp_Source END,tp_AllUsersProperties = CASE WHEN tp_AllUsersProperties IS NOT NULL AND CONVERT(image,tp_AllUsersProperties) IS NULL THEN NULL ELSE tp_AllUsersProperties END,tp_PerUserProperties = CASE WHEN tp_PerUserProperties IS NOT NULL AND CONVERT(image,tp_PerUserProperties) IS NULL THEN NULL ELSE tp_PerUserProperties END,tp_Cache = CASE WHEN tp_Cache IS NOT NULL AND CONVERT(image,tp_Cache) IS NULL THEN NULL ELSE tp_Cache END WHERE datalength(tp_View)=0 OR datalength(tp_Source)=0 OR datalength(tp_AllUsersProperties)=0 OR datalength(tp_PerUserProperties)=0 OR datalength(tp_Cache)=0 ;UPDATE [dbo].[AuditData] SET EventData = CASE WHEN EventData IS NOT NULL AND CONVERT(ntext,EventData) IS NULL THEN NULL ELSE EventData END WHERE datalength(EventData)=0 ;UPDATE [dbo].[EventCache] SET EventData = CASE WHEN EventData IS NOT NULL AND CONVERT(image,EventData) IS NULL THEN NULL ELSE EventData END,ACL = CASE WHEN ACL IS NOT NULL AND CONVERT(image,ACL) IS NULL THEN NULL ELSE ACL END WHERE datalength(EventData)=0 OR datalength(ACL)=0 ;UPDATE [dbo].[EventLog] SET FormattedFragment = CASE WHEN FormattedFragment IS NOT NULL AND CONVERT(ntext,FormattedFragment) IS NULL THEN NULL ELSE FormattedFragment END,EventData = CASE WHEN EventData IS NOT NULL AND CONVERT(image,EventData) IS NULL THEN NULL ELSE EventData END WHERE datalength(FormattedFragment)=0 OR datalength(EventData)=0 ;UPDATE [dbo].[EventSubsMatches] SET LookupFieldPermissionResults = CASE WHEN LookupFieldPermissionResults IS NOT NULL AND CONVERT(image,LookupFieldPermissionResults) IS NULL THEN NULL ELSE LookupFieldPermissionResults END WHERE datalength(LookupFieldPermissionResults)=0 ;UPDATE [dbo].[Features] SET Properties = CASE WHEN Properties IS NOT NULL AND CONVERT(ntext,Properties) IS NULL THEN NULL ELSE Properties END WHERE datalength(Properties)=0 ;UPDATE [dbo].[HT_Cache] SET [File] = CASE WHEN [File] IS NOT NULL AND CONVERT(image,[File]) IS NULL THEN NULL ELSE [File] END WHERE datalength([File])=0 ;UPDATE [dbo].[ImmedSubscriptions] SET Properties = CASE WHEN Properties IS NOT NULL AND CONVERT(ntext,Properties) IS NULL THEN NULL ELSE Properties END WHERE datalength(Properties)=0 ;UPDATE [dbo].[NavNodes] SET NodeMetaInfo = CASE WHEN NodeMetaInfo IS NOT NULL AND CONVERT(image,NodeMetaInfo) IS NULL THEN NULL ELSE NodeMetaInfo END WHERE datalength(NodeMetaInfo)=0 ;UPDATE [dbo].[Perms] SET Acl = CASE WHEN Acl IS NOT NULL AND CONVERT(image,Acl) IS NULL THEN NULL ELSE Acl END WHERE datalength(Acl)=0 ;UPDATE [dbo].[Personalization] SET tp_PerUserProperties = CASE WHEN tp_PerUserProperties IS NOT NULL AND CONVERT(image,tp_PerUserProperties) IS NULL THEN NULL ELSE tp_PerUserProperties END,tp_Cache = CASE WHEN tp_Cache IS NOT NULL AND CONVERT(image,tp_Cache) IS NULL THEN NULL ELSE tp_Cache END WHERE datalength(tp_PerUserProperties)=0 OR datalength(tp_Cache)=0 ;UPDATE [dbo].[Resources] SET NtextVal = CASE WHEN NtextVal IS NOT NULL AND CONVERT(ntext,NtextVal) IS NULL THEN NULL ELSE NtextVal END WHERE datalength(NtextVal)=0 ;UPDATE [dbo].[Sites] SET DomainGroupMapCache = CASE WHEN DomainGroupMapCache IS NOT NULL AND CONVERT(image,DomainGroupMapCache) IS NULL THEN NULL ELSE DomainGroupMapCache END WHERE datalength(DomainGroupMapCache)=0 ;UPDATE [dbo].[Webs] SET CachedNavScope = CASE WHEN CachedNavScope IS NOT NULL AND CONVERT(ntext,CachedNavScope) IS NULL THEN NULL ELSE CachedNavScope END,Description = CASE WHEN Description IS NOT NULL AND CONVERT(ntext,Description) IS NULL THEN NULL ELSE Description END,CachedNav = CASE WHEN CachedNav IS NOT NULL AND CONVERT(image,CachedNav) IS NULL THEN NULL ELSE CachedNav END,CachedInheritedNav = CASE WHEN CachedInheritedNav IS NOT NULL AND CONVERT(image,CachedInheritedNav) IS NULL THEN NULL ELSE CachedInheritedNav END,MetaInfo = CASE WHEN MetaInfo IS NOT NULL AND CONVERT(image,MetaInfo) IS NULL THEN NULL ELSE MetaInfo END,DailyUsageData = CASE WHEN DailyUsageData IS NOT NULL AND CONVERT(image,DailyUsageData) IS NULL THEN NULL ELSE DailyUsageData END,MonthlyUsageData = CASE WHEN MonthlyUsageData IS NOT NULL AND CONVERT(image,MonthlyUsageData) IS NULL THEN NULL ELSE MonthlyUsageData END,Ancestry = CASE WHEN Ancestry IS NOT NULL AND CONVERT(image,Ancestry) IS NULL THEN NULL ELSE Ancestry END WHERE datalength(CachedNavScope)=0 OR datalength(Description)=0 OR datalength(CachedNav)=0 OR datalength(CachedInheritedNav)=0 OR datalength(MetaInfo)=0 OR datalength(DailyUsageData)=0 OR datalength(MonthlyUsageData)=0 OR datalength(Ancestry)=0 ;UPDATE [dbo].[SchedSubscriptions] SET Properties = CASE WHEN Properties IS NOT NULL AND CONVERT(ntext,Properties) IS NULL THEN NULL ELSE Properties END WHERE datalength(Properties)=0 ;UPDATE [dbo].[ScheduledWorkItems] SET TextPayload = CASE WHEN TextPayload IS NOT NULL AND CONVERT(ntext,TextPayload) IS NULL THEN NULL ELSE TextPayload END,BinaryPayload = CASE WHEN BinaryPayload IS NOT NULL AND CONVERT(image,BinaryPayload) IS NULL THEN NULL ELSE BinaryPayload END WHERE datalength(TextPayload)=0 OR datalength(BinaryPayload)=0 ;UPDATE [dbo].[UserInfo] SET tp_ExternalToken = CASE WHEN tp_ExternalToken IS NOT NULL AND CONVERT(image,tp_ExternalToken) IS NULL THEN NULL ELSE tp_ExternalToken END WHERE datalength(tp_ExternalToken)=0 ;UPDATE [dbo].[Workflow] SET Modifications = CASE WHEN Modifications IS NOT NULL AND CONVERT(ntext,Modifications) IS NULL THEN NULL ELSE Modifications END,InstanceData = CASE WHEN InstanceData IS NOT NULL AND CONVERT(image,InstanceData) IS NULL THEN NULL ELSE InstanceData END,History = CASE WHEN History IS NOT NULL AND CONVERT(image,History) IS NULL THEN NULL ELSE History END WHERE datalength(Modifications)=0 OR datalength(InstanceData)=0 OR datalength(History)=0 ;UPDATE [dbo].[WorkflowAssociation] SET InstantiationParams = CASE WHEN InstantiationParams IS NOT NULL AND CONVERT(ntext,InstantiationParams) IS NULL THEN NULL ELSE InstantiationParams END WHERE datalength(InstantiationParams)=0 ;UPDATE [dbo].[AllUserData] SET ntext1 = CASE WHEN ntext1 IS NOT NULL AND CONVERT(ntext,ntext1) IS NULL THEN NULL ELSE ntext1 END,ntext2 = CASE WHEN ntext2 IS NOT NULL AND CONVERT(ntext,ntext2) IS NULL THEN NULL ELSE ntext2 END,ntext3 = CASE WHEN ntext3 IS NOT NULL AND CONVERT(ntext,ntext3) IS NULL THEN NULL ELSE ntext3 END,ntext4 = CASE WHEN ntext4 IS NOT NULL AND CONVERT(ntext,ntext4) IS NULL THEN NULL ELSE ntext4 END,ntext5 = CASE WHEN ntext5 IS NOT NULL AND CONVERT(ntext,ntext5) IS NULL THEN NULL ELSE ntext5 END,ntext6 = CASE WHEN ntext6 IS NOT NULL AND CONVERT(ntext,ntext6) IS NULL THEN NULL ELSE ntext6 END,ntext7 = CASE WHEN ntext7 IS NOT NULL AND CONVERT(ntext,ntext7) IS NULL THEN NULL ELSE ntext7 END,ntext8 = CASE WHEN ntext8 IS NOT NULL AND CONVERT(ntext,ntext8) IS NULL THEN NULL ELSE ntext8 END,ntext9 = CASE WHEN ntext9 IS NOT NULL AND CONVERT(ntext,ntext9) IS NULL THEN NULL ELSE ntext9 END,ntext10 = CASE WHEN ntext10 IS NOT NULL AND CONVERT(ntext,ntext10) IS NULL THEN NULL ELSE ntext10 END,ntext11 = CASE WHEN ntext11 IS NOT NULL AND CONVERT(ntext,ntext11) IS NULL THEN NULL ELSE ntext11 END,ntext12 = CASE WHEN ntext12 IS NOT NULL AND CONVERT(ntext,ntext12) IS NULL THEN NULL ELSE ntext12 END,ntext13 = CASE WHEN ntext13 IS NOT NULL AND CONVERT(ntext,ntext13) IS NULL THEN NULL ELSE ntext13 END,ntext14 = CASE WHEN ntext14 IS NOT NULL AND CONVERT(ntext,ntext14) IS NULL THEN NULL ELSE ntext14 END,ntext15 = CASE WHEN ntext15 IS NOT NULL AND CONVERT(ntext,ntext15) IS NULL THEN NULL ELSE ntext15 END,ntext16 = CASE WHEN ntext16 IS NOT NULL AND CONVERT(ntext,ntext16) IS NULL THEN NULL ELSE ntext16 END,ntext17 = CASE WHEN ntext17 IS NOT NULL AND CONVERT(ntext,ntext17) IS NULL THEN NULL ELSE ntext17 END,ntext18 = CASE WHEN ntext18 IS NOT NULL AND CONVERT(ntext,ntext18) IS NULL THEN NULL ELSE ntext18 END,ntext19 = CASE WHEN ntext19 IS NOT NULL AND CONVERT(ntext,ntext19) IS NULL THEN NULL ELSE ntext19 END,ntext20 = CASE WHEN ntext20 IS NOT NULL AND CONVERT(ntext,ntext20) IS NULL THEN NULL ELSE ntext20 END,ntext21 = CASE WHEN ntext21 IS NOT NULL AND CONVERT(ntext,ntext21) IS NULL THEN NULL ELSE ntext21 END,ntext22 = CASE WHEN ntext22 IS NOT NULL AND CONVERT(ntext,ntext22) IS NULL THEN NULL ELSE ntext22 END,ntext23 = CASE WHEN ntext23 IS NOT NULL AND CONVERT(ntext,ntext23) IS NULL THEN NULL ELSE ntext23 END,ntext24 = CASE WHEN ntext24 IS NOT NULL AND CONVERT(ntext,ntext24) IS NULL THEN NULL ELSE ntext24 END,ntext25 = CASE WHEN ntext25 IS NOT NULL AND CONVERT(ntext,ntext25) IS NULL THEN NULL ELSE ntext25 END,ntext26 = CASE WHEN ntext26 IS NOT NULL AND CONVERT(ntext,ntext26) IS NULL THEN NULL ELSE ntext26 END,ntext27 = CASE WHEN ntext27 IS NOT NULL AND CONVERT(ntext,ntext27) IS NULL THEN NULL ELSE ntext27 END,ntext28 = CASE WHEN ntext28 IS NOT NULL AND CONVERT(ntext,ntext28) IS NULL THEN NULL ELSE ntext28 END,ntext29 = CASE WHEN ntext29 IS NOT NULL AND CONVERT(ntext,ntext29) IS NULL THEN NULL ELSE ntext29 END,ntext30 = CASE WHEN ntext30 IS NOT NULL AND CONVERT(ntext,ntext30) IS NULL THEN NULL ELSE ntext30 END,ntext31 = CASE WHEN ntext31 IS NOT NULL AND CONVERT(ntext,ntext31) IS NULL THEN NULL ELSE ntext31 END,ntext32 = CASE WHEN ntext32 IS NOT NULL AND CONVERT(ntext,ntext32) IS NULL THEN NULL ELSE ntext32 END WHERE datalength(ntext1)=0 OR datalength(ntext2)=0 OR datalength(ntext3)=0 OR datalength(ntext4)=0 OR datalength(ntext5)=0 OR datalength(ntext6)=0 OR datalength(ntext7)=0 OR datalength(ntext8)=0 OR datalength(ntext9)=0 OR datalength(ntext10)=0 OR datalength(ntext11)=0 OR datalength(ntext12)=0 OR datalength(ntext13)=0 OR datalength(ntext14)=0 OR datalength(ntext15)=0 OR datalength(ntext16)=0 OR datalength(ntext17)=0 OR datalength(ntext18)=0 OR datalength(ntext19)=0 OR datalength(ntext20)=0 OR datalength(ntext21)=0 OR datalength(ntext22)=0 OR datalength(ntext23)=0 OR datalength(ntext24)=0 OR datalength(ntext25)=0 OR datalength(ntext26)=0 OR datalength(ntext27)=0 OR datalength(ntext28)=0 OR datalength(ntext29)=0 OR datalength(ntext30)=0 OR datalength(ntext31)=0 OR datalength(ntext32)=0 ;</value>
    <text />
    </action>
    <action name="tsql_stack" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value>&lt;frame level='1' handle='0x02000000C81D290047D9F957FDC9CF5FB9CB20A5D2DF3857' line='1' offsetStart='1824' offsetEnd='2152'/&gt;</value>
    <text />
    </action>
    </event>
    <event name="wait_info" package="sqlos" id="48" version="1" timestamp="2014-02-28T05:48:03.333Z">
    <data name="wait_type">
    <type name="wait_types" package="sqlos" />
    <value>3</value>
    <text>LCK_M_S</text>
    </data>
    <data name="opcode">
    <type name="event_opcode" package="sqlos" />
    <value>1</value>
    <text>End</text>
    </data>
    <data name="duration">
    <type name="uint64" package="package0" />
    <value>473655</value>
    <text />
    </data>
    <data name="max_duration">
    <type name="uint64" package="package0" />
    <value>500355</value>
    <text />
    </data>
    <data name="total_duration">
    <type name="uint64" package="package0" />
    <value>1469581</value>
    <text />
    </data>
    <data name="signal_duration">
    <type name="uint64" package="package0" />
    <value>4</value>
    <text />
    </data>
    <data name="completed_count">
    <type name="uint64" package="package0" />
    <value>101</value>
    <text />
    </data>
    <action name="callstack" package="package0">
    <type name="callstack" package="package0" />
    <value>0x0000000000CEDB7D
    0x00000000004141EA
    0x000000000041426D
    0x000000000041299E
    0x000000000094AE87
    0x00000000004FD533
    0x000000000043193F
    0x000000000043657E
    0x000000000094B45E
    0x0000000000446AE5
    0x00000000004472A9
    0x00000000004538C4
    0x0000000000448F9C
    0x0000000000453836
    0x00000000004540A0
    0x000000000045367F</value>
    <text />
    </action>
    <action name="session_id" package="sqlserver">
    <type name="uint16" package="package0" />
    <value>89</value>
    <text />
    </action>
    <action name="sql_text" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value>(@Version nvarchar(64) output)
    IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[Versions]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
    AND EXISTS (SELECT * FROM sysobjects join syscolumns on sysobjects.id = syscolumns.id WHERE sysobjects.name='Versions' and syscolumns.name = 'TimeStamp')
    BEGIN
    EXEC sp_executesql N'SELECT VersionId, Version FROM [dbo].[Versions] WITH (NOLOCK) ORDER BY VersionId, Id'
    END
    ELSE
    BEGIN
    SELECT NULL, NULL
    END
    </value>
    <text />
    </action>
    </event>
    <event name="wait_info" package="sqlos" id="48" version="1" timestamp="2014-02-28T05:48:03.376Z">
    <data name="wait_type">
    <type name="wait_types" package="sqlos" />
    <value>3</value>
    <text>LCK_M_S</text>
    </data>
    <data name="opcode">
    <type name="event_opcode" package="sqlos" />
    <value>1</value>
    <text>End</text>
    </data>
    <data name="duration">
    <type name="uint64" package="package0" />
    <value>526804</value>
    <text />
    </data>
    <data name="max_duration">
    <type name="uint64" package="package0" />
    <value>526804</value>
    <text />
    </data>
    <data name="total_duration">
    <type name="uint64" package="package0" />
    <value>1996385</value>
    <text />
    </data>
    <data name="signal_duration">
    <type name="uint64" package="package0" />
    <value>47</value>
    <text />
    </data>
    <data name="completed_count">
    <type name="uint64" package="package0" />
    <value>102</value>
    <text />
    </data>
    <action name="callstack" package="package0">
    <type name="callstack" package="package0" />
    <value>0x0000000000CEDB7D
    0x00000000004141EA
    0x000000000041426D
    0x000000000041299E
    0x000000000094AE87
    0x00000000004FD533
    0x000000000043193F
    0x000000000043657E
    0x000000000094B45E
    0x0000000000446AE5
    0x00000000004472A9
    0x00000000004538C4
    0x0000000000448F9C
    0x0000000000453836
    0x00000000004540A0
    0x000000000045367F</value>
    <text />
    </action>
    <action name="session_id" package="sqlserver">
    <type name="uint16" package="package0" />
    <value>56</value>
    <text />
    </action>
    <action name="sql_text" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value>(@Version nvarchar(64) output)
    IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[Versions]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
    AND EXISTS (SELECT * FROM sysobjects join syscolumns on sysobjects.id = syscolumns.id WHERE sysobjects.name='Versions' and syscolumns.name = 'TimeStamp')
    BEGIN
    EXEC sp_executesql N'SELECT VersionId, Version FROM [dbo].[Versions] WITH (NOLOCK) ORDER BY VersionId, Id'
    END
    ELSE
    BEGIN
    SELECT NULL, NULL
    END
    </value>
    <text />
    </action>
    </event>
    <event name="error_reported" package="sqlserver" id="100" version="1" timestamp="2014-02-28T05:57:22.569Z">
    <data name="error">
    <type name="int32" package="package0" />
    <value>7105</value>
    <text />
    </data>
    <data name="severity">
    <type name="int32" package="package0" />
    <value>22</value>
    <text />
    </data>
    <data name="state">
    <type name="int32" package="package0" />
    <value>6</value>
    <text />
    </data>
    <data name="user_defined">
    <type name="boolean" package="package0" />
    <value>false</value>
    <text />
    </data>
    <data name="message">
    <type name="unicode_string" package="package0" />
    <value>The Database ID 7, Page (1:12779100), slot 1 for LOB data type node does not exist. This is usually caused by transactions that can read uncommitted data on a data page. Run DBCC CHECKTABLE.</value>
    <text />
    </data>
    <action name="callstack" package="package0">
    <type name="callstack" package="package0" />
    <value>0x0000000000CEDC3E
    0x000000000048BC65
    0x000000000048BA60
    0x0000000000E1F5D0
    0x00000000008105B6
    0x000000000080F5D8
    0x000000000080F2A6
    0x00000000022F292D
    0x0000000000C60883
    0x000000000055D558
    0x000000000055D0C7
    0x000000000055CF1C
    0x0000000000560365
    0x0000000000560286
    0x000000000055FD36
    0x00000000005600F9</value>
    <text />
    </action>
    <action name="session_id" package="sqlserver">
    <type name="uint16" package="package0" />
    <value>89</value>
    <text />
    </action>
    <action name="sql_text" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value>UPDATE [dbo].[AllDocs] SET WelcomePageParameters = CASE WHEN WelcomePageParameters IS NOT NULL AND CONVERT(ntext,WelcomePageParameters) IS NULL THEN NULL ELSE WelcomePageParameters END,MetaInfo = CASE WHEN MetaInfo IS NOT NULL AND CONVERT(image,MetaInfo) IS NULL THEN NULL ELSE MetaInfo END,UnversionedMetaInfo = CASE WHEN UnversionedMetaInfo IS NOT NULL AND CONVERT(image,UnversionedMetaInfo) IS NULL THEN NULL ELSE UnversionedMetaInfo END,BuildDependencySet = CASE WHEN BuildDependencySet IS NOT NULL AND CONVERT(image,BuildDependencySet) IS NULL THEN NULL ELSE BuildDependencySet END,FileFormatMetaInfo = CASE WHEN FileFormatMetaInfo IS NOT NULL AND CONVERT(image,FileFormatMetaInfo) IS NULL THEN NULL ELSE FileFormatMetaInfo END WHERE datalength(WelcomePageParameters)=0 OR datalength(MetaInfo)=0 OR datalength(UnversionedMetaInfo)=0 OR datalength(BuildDependencySet)=0 OR datalength(FileFormatMetaInfo)=0 ;UPDATE [dbo].[AllDocStreams] SET Content = CASE WHEN Content IS NOT NULL AND CONVERT(image,Content) IS NULL THEN NULL ELSE Content END WHERE datalength(Content)=0 ;UPDATE [dbo].[AllDocVersions] SET MetaInfo = CASE WHEN MetaInfo IS NOT NULL AND CONVERT(image,MetaInfo) IS NULL THEN NULL ELSE MetaInfo END,Content = CASE WHEN Content IS NOT NULL AND CONVERT(image,Content) IS NULL THEN NULL ELSE Content END WHERE datalength(MetaInfo)=0 OR datalength(Content)=0 ;UPDATE [dbo].[AllLists] SET tp_Fields = CASE WHEN tp_Fields IS NOT NULL AND CONVERT(ntext,tp_Fields) IS NULL THEN NULL ELSE tp_Fields END,tp_ContentTypes = CASE WHEN tp_ContentTypes IS NOT NULL AND CONVERT(ntext,tp_ContentTypes) IS NULL THEN NULL ELSE tp_ContentTypes END WHERE datalength(tp_Fields)=0 OR datalength(tp_ContentTypes)=0 ;UPDATE [dbo].[AllWebParts] SET tp_View = CASE WHEN tp_View IS NOT NULL AND CONVERT(ntext,tp_View) IS NULL THEN NULL ELSE tp_View END,tp_Source = CASE WHEN tp_Source IS NOT NULL AND CONVERT(ntext,tp_Source) IS NULL THEN NULL ELSE tp_Source END,tp_AllUsersProperties = CASE WHEN tp_AllUsersProperties IS NOT NULL AND CONVERT(image,tp_AllUsersProperties) IS NULL THEN NULL ELSE tp_AllUsersProperties END,tp_PerUserProperties = CASE WHEN tp_PerUserProperties IS NOT NULL AND CONVERT(image,tp_PerUserProperties) IS NULL THEN NULL ELSE tp_PerUserProperties END,tp_Cache = CASE WHEN tp_Cache IS NOT NULL AND CONVERT(image,tp_Cache) IS NULL THEN NULL ELSE tp_Cache END WHERE datalength(tp_View)=0 OR datalength(tp_Source)=0 OR datalength(tp_AllUsersProperties)=0 OR datalength(tp_PerUserProperties)=0 OR datalength(tp_Cache)=0 ;UPDATE [dbo].[AuditData] SET EventData = CASE WHEN EventData IS NOT NULL AND CONVERT(ntext,EventData) IS NULL THEN NULL ELSE EventData END WHERE datalength(EventData)=0 ;UPDATE [dbo].[EventCache] SET EventData = CASE WHEN EventData IS NOT NULL AND CONVERT(image,EventData) IS NULL THEN NULL ELSE EventData END,ACL = CASE WHEN ACL IS NOT NULL AND CONVERT(image,ACL) IS NULL THEN NULL ELSE ACL END WHERE datalength(EventData)=0 OR datalength(ACL)=0 ;UPDATE [dbo].[EventLog] SET FormattedFragment = CASE WHEN FormattedFragment IS NOT NULL AND CONVERT(ntext,FormattedFragment) IS NULL THEN NULL ELSE FormattedFragment END,EventData = CASE WHEN EventData IS NOT NULL AND CONVERT(image,EventData) IS NULL THEN NULL ELSE EventData END WHERE datalength(FormattedFragment)=0 OR datalength(EventData)=0 ;UPDATE [dbo].[EventSubsMatches] SET LookupFieldPermissionResults = CASE WHEN LookupFieldPermissionResults IS NOT NULL AND CONVERT(image,LookupFieldPermissionResults) IS NULL THEN NULL ELSE LookupFieldPermissionResults END WHERE datalength(LookupFieldPermissionResults)=0 ;UPDATE [dbo].[Features] SET Properties = CASE WHEN Properties IS NOT NULL AND CONVERT(ntext,Properties) IS NULL THEN NULL ELSE Properties END WHERE datalength(Properties)=0 ;UPDATE [dbo].[HT_Cache] SET [File] = CASE WHEN [File] IS NOT NULL AND CONVERT(image,[File]) IS NULL THEN NULL ELSE [File] END WHERE datalength([File])=0 ;UPDATE [dbo].[ImmedSubscriptions] SET Properties = CASE WHEN Properties IS NOT NULL AND CONVERT(ntext,Properties) IS NULL THEN NULL ELSE Properties END WHERE datalength(Properties)=0 ;UPDATE [dbo].[NavNodes] SET NodeMetaInfo = CASE WHEN NodeMetaInfo IS NOT NULL AND CONVERT(image,NodeMetaInfo) IS NULL THEN NULL ELSE NodeMetaInfo END WHERE datalength(NodeMetaInfo)=0 ;UPDATE [dbo].[Perms] SET Acl = CASE WHEN Acl IS NOT NULL AND CONVERT(image,Acl) IS NULL THEN NULL ELSE Acl END WHERE datalength(Acl)=0 ;UPDATE [dbo].[Personalization] SET tp_PerUserProperties = CASE WHEN tp_PerUserProperties IS NOT NULL AND CONVERT(image,tp_PerUserProperties) IS NULL THEN NULL ELSE tp_PerUserProperties END,tp_Cache = CASE WHEN tp_Cache IS NOT NULL AND CONVERT(image,tp_Cache) IS NULL THEN NULL ELSE tp_Cache END WHERE datalength(tp_PerUserProperties)=0 OR datalength(tp_Cache)=0 ;UPDATE [dbo].[Resources] SET NtextVal = CASE WHEN NtextVal IS NOT NULL AND CONVERT(ntext,NtextVal) IS NULL THEN NULL ELSE NtextVal END WHERE datalength(NtextVal)=0 ;UPDATE [dbo].[Sites] SET DomainGroupMapCache = CASE WHEN DomainGroupMapCache IS NOT NULL AND CONVERT(image,DomainGroupMapCache) IS NULL THEN NULL ELSE DomainGroupMapCache END WHERE datalength(DomainGroupMapCache)=0 ;UPDATE [dbo].[Webs] SET CachedNavScope = CASE WHEN CachedNavScope IS NOT NULL AND CONVERT(ntext,CachedNavScope) IS NULL THEN NULL ELSE CachedNavScope END,Description = CASE WHEN Description IS NOT NULL AND CONVERT(ntext,Description) IS NULL THEN NULL ELSE Description END,CachedNav = CASE WHEN CachedNav IS NOT NULL AND CONVERT(image,CachedNav) IS NULL THEN NULL ELSE CachedNav END,CachedInheritedNav = CASE WHEN CachedInheritedNav IS NOT NULL AND CONVERT(image,CachedInheritedNav) IS NULL THEN NULL ELSE CachedInheritedNav END,MetaInfo = CASE WHEN MetaInfo IS NOT NULL AND CONVERT(image,MetaInfo) IS NULL THEN NULL ELSE MetaInfo END,DailyUsageData = CASE WHEN DailyUsageData IS NOT NULL AND CONVERT(image,DailyUsageData) IS NULL THEN NULL ELSE DailyUsageData END,MonthlyUsageData = CASE WHEN MonthlyUsageData IS NOT NULL AND CONVERT(image,MonthlyUsageData) IS NULL THEN NULL ELSE MonthlyUsageData END,Ancestry = CASE WHEN Ancestry IS NOT NULL AND CONVERT(image,Ancestry) IS NULL THEN NULL ELSE Ancestry END WHERE datalength(CachedNavScope)=0 OR datalength(Description)=0 OR datalength(CachedNav)=0 OR datalength(CachedInheritedNav)=0 OR datalength(MetaInfo)=0 OR datalength(DailyUsageData)=0 OR datalength(MonthlyUsageData)=0 OR datalength(Ancestry)=0 ;UPDATE [dbo].[SchedSubscriptions] SET Properties = CASE WHEN Properties IS NOT NULL AND CONVERT(ntext,Properties) IS NULL THEN NULL ELSE Properties END WHERE datalength(Properties)=0 ;UPDATE [dbo].[ScheduledWorkItems] SET TextPayload = CASE WHEN TextPayload IS NOT NULL AND CONVERT(ntext,TextPayload) IS NULL THEN NULL ELSE TextPayload END,BinaryPayload = CASE WHEN BinaryPayload IS NOT NULL AND CONVERT(image,BinaryPayload) IS NULL THEN NULL ELSE BinaryPayload END WHERE datalength(TextPayload)=0 OR datalength(BinaryPayload)=0 ;UPDATE [dbo].[UserInfo] SET tp_ExternalToken = CASE WHEN tp_ExternalToken IS NOT NULL AND CONVERT(image,tp_ExternalToken) IS NULL THEN NULL ELSE tp_ExternalToken END WHERE datalength(tp_ExternalToken)=0 ;UPDATE [dbo].[Workflow] SET Modifications = CASE WHEN Modifications IS NOT NULL AND CONVERT(ntext,Modifications) IS NULL THEN NULL ELSE Modifications END,InstanceData = CASE WHEN InstanceData IS NOT NULL AND CONVERT(image,InstanceData) IS NULL THEN NULL ELSE InstanceData END,History = CASE WHEN History IS NOT NULL AND CONVERT(image,History) IS NULL THEN NULL ELSE History END WHERE datalength(Modifications)=0 OR datalength(InstanceData)=0 OR datalength(History)=0 ;UPDATE [dbo].[WorkflowAssociation] SET InstantiationParams = CASE WHEN InstantiationParams IS NOT NULL AND CONVERT(ntext,InstantiationParams) IS NULL THEN NULL ELSE InstantiationParams END WHERE datalength(InstantiationParams)=0 ;UPDATE [dbo].[AllUserData] SET ntext1 = CASE WHEN ntext1 IS NOT NULL AND CONVERT(ntext,ntext1) IS NULL THEN NULL ELSE ntext1 END,ntext2 = CASE WHEN ntext2 IS NOT NULL AND CONVERT(ntext,ntext2) IS NULL THEN NULL ELSE ntext2 END,ntext3 = CASE WHEN ntext3 IS NOT NULL AND CONVERT(ntext,ntext3) IS NULL THEN NULL ELSE ntext3 END,ntext4 = CASE WHEN ntext4 IS NOT NULL AND CONVERT(ntext,ntext4) IS NULL THEN NULL ELSE ntext4 END,ntext5 = CASE WHEN ntext5 IS NOT NULL AND CONVERT(ntext,ntext5) IS NULL THEN NULL ELSE ntext5 END,ntext6 = CASE WHEN ntext6 IS NOT NULL AND CONVERT(ntext,ntext6) IS NULL THEN NULL ELSE ntext6 END,ntext7 = CASE WHEN ntext7 IS NOT NULL AND CONVERT(ntext,ntext7) IS NULL THEN NULL ELSE ntext7 END,ntext8 = CASE WHEN ntext8 IS NOT NULL AND CONVERT(ntext,ntext8) IS NULL THEN NULL ELSE ntext8 END,ntext9 = CASE WHEN ntext9 IS NOT NULL AND CONVERT(ntext,ntext9) IS NULL THEN NULL ELSE ntext9 END,ntext10 = CASE WHEN ntext10 IS NOT NULL AND CONVERT(ntext,ntext10) IS NULL THEN NULL ELSE ntext10 END,ntext11 = CASE WHEN ntext11 IS NOT NULL AND CONVERT(ntext,ntext11) IS NULL THEN NULL ELSE ntext11 END,ntext12 = CASE WHEN ntext12 IS NOT NULL AND CONVERT(ntext,ntext12) IS NULL THEN NULL ELSE ntext12 END,ntext13 = CASE WHEN ntext13 IS NOT NULL AND CONVERT(ntext,ntext13) IS NULL THEN NULL ELSE ntext13 END,ntext14 = CASE WHEN ntext14 IS NOT NULL AND CONVERT(ntext,ntext14) IS NULL THEN NULL ELSE ntext14 END,ntext15 = CASE WHEN ntext15 IS NOT NULL AND CONVERT(ntext,ntext15) IS NULL THEN NULL ELSE ntext15 END,ntext16 = CASE WHEN ntext16 IS NOT NULL AND CONVERT(ntext,ntext16) IS NULL THEN NULL ELSE ntext16 END,ntext17 = CASE WHEN ntext17 IS NOT NULL AND CONVERT(ntext,ntext17) IS NULL THEN NULL ELSE ntext17 END,ntext18 = CASE WHEN ntext18 IS NOT NULL AND CONVERT(ntext,ntext18) IS NULL THEN NULL ELSE ntext18 END,ntext19 = CASE WHEN ntext19 IS NOT NULL AND CONVERT(ntext,ntext19) IS NULL THEN NULL ELSE ntext19 END,ntext20 = CASE WHEN ntext20 IS NOT NULL AND CONVERT(ntext,ntext20) IS NULL THEN NULL ELSE ntext20 END,ntext21 = CASE WHEN ntext21 IS NOT NULL AND CONVERT(ntext,ntext21) IS NULL THEN NULL ELSE ntext21 END,ntext22 = CASE WHEN ntext22 IS NOT NULL AND CONVERT(ntext,ntext22) IS NULL THEN NULL ELSE ntext22 END,ntext23 = CASE WHEN ntext23 IS NOT NULL AND CONVERT(ntext,ntext23) IS NULL THEN NULL ELSE ntext23 END,ntext24 = CASE WHEN ntext24 IS NOT NULL AND CONVERT(ntext,ntext24) IS NULL THEN NULL ELSE ntext24 END,ntext25 = CASE WHEN ntext25 IS NOT NULL AND CONVERT(ntext,ntext25) IS NULL THEN NULL ELSE ntext25 END,ntext26 = CASE WHEN ntext26 IS NOT NULL AND CONVERT(ntext,ntext26) IS NULL THEN NULL ELSE ntext26 END,ntext27 = CASE WHEN ntext27 IS NOT NULL AND CONVERT(ntext,ntext27) IS NULL THEN NULL ELSE ntext27 END,ntext28 = CASE WHEN ntext28 IS NOT NULL AND CONVERT(ntext,ntext28) IS NULL THEN NULL ELSE ntext28 END,ntext29 = CASE WHEN ntext29 IS NOT NULL AND CONVERT(ntext,ntext29) IS NULL THEN NULL ELSE ntext29 END,ntext30 = CASE WHEN ntext30 IS NOT NULL AND CONVERT(ntext,ntext30) IS NULL THEN NULL ELSE ntext30 END,ntext31 = CASE WHEN ntext31 IS NOT NULL AND CONVERT(ntext,ntext31) IS NULL THEN NULL ELSE ntext31 END,ntext32 = CASE WHEN ntext32 IS NOT NULL AND CONVERT(ntext,ntext32) IS NULL THEN NULL ELSE ntext32 END WHERE datalength(ntext1)=0 OR datalength(ntext2)=0 OR datalength(ntext3)=0 OR datalength(ntext4)=0 OR datalength(ntext5)=0 OR datalength(ntext6)=0 OR datalength(ntext7)=0 OR datalength(ntext8)=0 OR datalength(ntext9)=0 OR datalength(ntext10)=0 OR datalength(ntext11)=0 OR datalength(ntext12)=0 OR datalength(ntext13)=0 OR datalength(ntext14)=0 OR datalength(ntext15)=0 OR datalength(ntext16)=0 OR datalength(ntext17)=0 OR datalength(ntext18)=0 OR datalength(ntext19)=0 OR datalength(ntext20)=0 OR datalength(ntext21)=0 OR datalength(ntext22)=0 OR datalength(ntext23)=0 OR datalength(ntext24)=0 OR datalength(ntext25)=0 OR datalength(ntext26)=0 OR datalength(ntext27)=0 OR datalength(ntext28)=0 OR datalength(ntext29)=0 OR datalength(ntext30)=0 OR datalength(ntext31)=0 OR datalength(ntext32)=0 ;</value>
    <text />
    </action>
    <action name="tsql_stack" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value>&lt;frame level='1' handle='0x02000000C81D290047D9F957FDC9CF5FB9CB20A5D2DF3857' line='1' offsetStart='1824' offsetEnd='2152'/&gt;</value>
    <text />
    </action>
    </event>
    </RingBufferTarget>
    can you help with this error.

  • [Solved] Problems with xinit after upgrade xorg-xinit to 1.3.4-2 versi

    Hi,
    Today I've upgraded my system with pacman -Syu and after upgrading xorg-xinit to 1.3.4-2 version I cannot use X.
    When I run "xinit" then single white window appears but there is not any reaction for mouse or keyboard events.
    I cannot even get back to VT by ctrl-alt-Fx or switch on/off NumLock. The only reaction on keyboard is issuing sysrq commands (ctrl-alt-sysrq E) which kills X.
    I also discovered that running following command helps: "xinit -- vt12" - I mean it launches X and mouse and keyboard are working fine.
    Is this a bug or I have misconfigured system?
    Last edited by wtx (2015-03-23 15:08:14)

    I can confirm what appears to be the same problem on my two machines running Arch with systemd. On both machines, after upgrading the xorg-* packages yesterday, X would not start as it normally did: I'd get a blank screen with only a _ up in the top left corner. Pressing ctrl-alt-(number) had no effect, nor did anything else I tried. (I didn't try killing X like the OP did.) Googled and searched the forums yesterday to no avail; nothing I tried worked.
    Caveat: In my case(s), I use 'startxfce4' instead of 'startx', so it might not be the exact issue. Trying 'startx' just took me to a default X installation setup, with three terminal windows and a clock. I'm sure anyone who's set up Arch for the first time has seen the same windows.
    So in case it helps, here's what I did to get them working again:
    1. This morning, I checked the forums again and saw the thread at https://bbs.archlinux.org/viewtopic.php?id=195107, which recommended changing a line in the file /etc/X11/xinit/xserverrc from:
    exec /usr/bin/X -nolisten tcp "$@"
    to
    exec /usr/bin/X -nolisten tcp "$@" vt$XDG_VTNR
    2. I didn't want to change the default file, so I created a ~/.xserverrc file (note that it's in my home directory, so it will only work for my one user; if you want it to work for multiple users you'd follow step one exactly, as recommended in the other thread). I put the line
    exec /usr/bin/X -nolisten tcp "$@" vt$XDG_VTNR
    in that file, saved it, and fired up 'startxfce4'. Everything works perfectly.
    Again, since I use XFCE I don't know if it's exactly the same issue you have, but at least this might help point you towards a solution.
    PS
    In case you're wondering why I tried the solution in the other thread: The blank screen error only appears when I had
    needs_root_rights=yes
    in /etc/X11/Xwrapper.config. When I changed it to 'no' (or removed the file entirely), I would get an error message like "xf860OpenConsole: Cannot open /dev/tty0", which is similar to the error message the OP on that thread would get.
    EDIT:
    Actually, the more I think about it, the less I think this is the same problem. And the lack of details from the OP doesn't help. Still, it does appear that both of these problems concern passing a virtual terminal parameter to X, or failing to do so.
    Last edited by Massimiliano (2015-03-23 13:21:58)

  • Image upgrade for 2811-Error SWIM5004

    Hi ,
    While doing the image repository of the 2811 routers I am receiving the below error, these errors only appearing when I am doing image upgrade/repository for 2811 routers only.
    We cannot use the snmp write due to company policy. If any other solution exist then please advise me.
    "SWIM1125: Failed to copy the image to Flash due to the reason - SWIM5004: Cannot initiate SNMP-set operation.
    The SNMP Write Community String might be wrong.
    Check whether the correct SNMP Write Community String is entered in Device and Credential Repository..
    Retry the operation. If the problem persists, check the Bug Toolkit application for any known issues on the running image version.
    We are using SNMP v3 and have checked the SNMP settings ,it is ok.
    We have also verified that the TFTP service is working properly on the Ciscoworks server.
    I am using
    LMS:3.2
    RME:4.3.1
    THANKS

    If you cannot use SNMP write access, you will not be able to use SWIM to upgrade this 2811 using TFTP.  In order to upgrade the 2800s, RME will perform an SNMP Set of the CISCO-FLASH-MIB to trigger a copy of the image from the RME server to the router.  You can use SCP instead in which case the device will be the server.  In order to do this, you need to have SSH configured on the device, and the user configured in DCR must be allowed to login to the device with enable level access.

  • System Image Utility always fails, why?

    Hi everyone,
    on my clean and fresh install of 10.7.4 Server the System Image Utility always fails to create an image. I want to create a NetInstall image and have put the OS X Lion Installer in /Applications. I can select it in SIU and choose to create a NetInstall image. It asks for the admin pw and always presents an error at the very end: Image creation failed. An unknown error has occured.
    If I select to create a NetBoot image instead it fails directly after clicking on the Create button with this slightly different message: Image creation failed. An error has occured. At least it’s no unknown error…
    Any ideas what might be causing this? I have succesfully created NetInstall images with 10.6 Server and 10.8 Server, but 10.7 Server somehow won’t play nice.
    Thanks
    Björn

    Hi Brian,
    I first deleted the Installer and redownloaded it from the App Store, just to make sure there was no problem with it. Even though I now have the 10.7.4 Installer (had 10.7.0 before) nothing has changed. I then went on to set the log level as suggested. I now get different errors based on the chosen log level.
    Log level set to debug:
    Image creation failed.
    *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil
    Log level set to verbose:
    Image creation failed.
    An unknown error has occurred.
    I did not see anything helpful in the logs unfortunately. The only noticeable thing mentioned was: Failed to create image from installer media.
    Any additional ideas? I will attach both logs here, just in case.
    VERBOSE LOG:
    Starting image creation.
    Workflow Started (2012-09-08 14:08:00 +0200)
    Mac OS X Server 10.7.4 (11E53), System Image Utility 10.7.3 (543)
    Starting action: Define Image Source (1.3)
    Finished running action: Define Image Source
    Starting action: Create Image (1.6.2)
    Starting image creation process...
    Create NetInstall Image
    Initiating NetInstall from Installer media.
    Creating working path at /Users/vm/Desktop/NetInstall of Install Mac OS X Lion
    Creating disk image (Size: 4062 MB)
    Finalizing disk image.
    created: /Users/vm/Desktop/NetInstall of Install Mac OS X Lion/NetInstall.dmg
    Attaching disk image
    Copying /Volumes/Mac OS X Install ESD
    Preparing the kernel and boot loader for the boot image
    /Users/vm/Desktop/NetInstall of Install Mac OS X Lion/i386
    /Users/vm/Desktop/NetInstall of Install Mac OS X Lion/i386/x86_64
    Copying /Volumes/Mac OS X Install ESD/boot.efi
    Copying /Volumes/Mac OS X Install ESD/System/Library/CoreServices/PlatformSupport.plist
    Performing post install cleanup
    Detaching disk image
    "disk4" unmounted.
    "disk4" ejected.
    Correcting permissions. 501:20 /Users/vm/Desktop/NetInstall of Install Mac OS X Lion
    Script is done.
    Failed to create image from installer media.
    An unknown error has occurred.
    NetInstall creation failed.
    Image creation process finished...
    Stopping image creation.
    Image creation failed.
    DEBUG LOG:
    Starting image creation.
    Workflow Started (2012-09-08 13:59:22 +0200)
    Mac OS X Server 10.7.4 (11E53), System Image Utility 10.7.3 (543)
    Starting action: Define Image Source (1.3)
    Finished running action: Define Image Source
    Starting action: Create Image (1.6.2)
    Starting image creation process...
    Create NetInstall Image
    Initiating NetInstall from Installer media.
    progressPrefix="_progress"
    ++ progressPrefix=_progress
    scriptsDebugKey="DEBUG"
    ++ scriptsDebugKey=DEBUG
    imageIsUDIFKey="1"
    ++ imageIsUDIFKey=1
    mountPoint=""
    ++ mountPoint=
    ownershipInfoKey="501:20"
    ++ ownershipInfoKey=501:20
    destVolFSType="HFS+"
    ++ destVolFSType=HFS+
    installSource="/Volumes/Mac OS X Install ESD"
    ++ installSource='/Volumes/Mac OS X Install ESD'
    dmgTarget="NetInstall"
    ++ dmgTarget=NetInstall
    destPath="/Users/vm/Desktop/NetInstall of Install Mac OS X Lion"
    ++ destPath='/Users/vm/Desktop/NetInstall of Install Mac OS X Lion'
    dmgVolName="NetInstall"
    ++ dmgVolName=NetInstall
    . "${1}/createCommon.sh"
    + . /tmp/niutemp.Yv8Z6Mqx/createCommon.sh
    # createCommon.sh
    # Common functionality for the Image creation process.
    # sourced in by the various SIU scripts
    # Copyright © 2007-2011 Apple Inc. All rights reserved.
    # Using dscl, create a user account
    AddLocalUser()
    # $1 volume whose local node database to modify
    # $2 long name
    # $3 short name
    # $4 isAdminUser key
    # $5 password data
    # $6 password hint
    # $7 user picture path
    # $8 Language string
    local databasePath="/Local/Default/Users/${3}"
    local targetVol="${1}"
    # Find a free UID between 501 and 599
    for ((i=501; i<600; i++)); do
    output=`/usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -search /Local/Default/Users UniqueID $i`
    # If there is already an account dscl returns it, so we're looking for an empty return value.
    if [ "$output" == "" ]; then
    break
    fi
    done
    # Create the user record
    /usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -create $databasePath
    if [ $? != 0 ]; then
    echo "Failed to create '${databasePath}'."
    return 1
    fi
    # Add long name
    /usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -append $databasePath RealName "${2}"
    if [ $? != 0 ]; then
    echo "Failed to set the RealName."
    return 1
    fi
    # Add PrimaryGroupID
    if [ "${4}" == 1 ]; then
    /usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -append $databasePath PrimaryGroupID 80
    else
    /usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -append $databasePath PrimaryGroupID 20
    fi
    if [ $? != 0 ]; then
    echo "Failed to set the PrimaryGroupID."
    return 1
    fi
    # Add UniqueID
    /usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -append $databasePath UniqueID ${i}
    if [ $? != 0 ]; then
    echo "Failed to set the UniqueID."
    return 1
    fi
    # Add Home Directory entry
    /usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -append $databasePath NFSHomeDirectory /Users/${3}
    if [ $? != 0 ]; then
    echo "Failed to set the NFSHomeDirectory."
    fi
    if [ "${6}" != "" ]; then
    /usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -append $databasePath AuthenticationHint "${6}"
    if [ $? != 0 ]; then
    echo "Failed to set the AuthenticationHint."
    return 1
    fi
    fi
    /usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -append $databasePath picture "${7}"
    if [ $? != 0 ]; then
    echo "Failed to set the picture."
    return 1
    fi
    /usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -passwd $databasePath "${5}"
    if [ $? != 0 ]; then
    echo "Failed to set the passwd."
    return 1
    fi
    # Add shell
    /usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -append $databasePath UserShell "/bin/bash"
    if [ $? != 0 ]; then
    echo "Failed to set the UserShell."
    return 1
    fi
    # Create Home directory
    if [ -e "/System/Library/User Template/${8}.lproj/" ]; then
    /usr/bin/ditto "/System/Library/User Template/${8}.lproj/" "${targetVol}/Users/${3}"
    else
    /usr/bin/ditto "/System/Library/User Template/English.lproj/" "${targetVol}/Users/${3}"
    fi
    if [ $? != 0 ]; then
    echo "Failed to copy the User Template."
    return 1
    fi
    /usr/sbin/chown -R $i:$i "${targetVol}/Users/${3}"
    if [ $? != 0 ]; then
    echo "Failed to set ownership on the User folder."
    return 1
    fi
    # Copies a list of files (full paths contained in the file at $1) from source to the path specified in $2
    CopyEntriesFromFileToPath()
    local theFile="$1"
    local theDest="$2"
    local opt=""
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    opt="-v"
    fi
    while read FILE
    do
    if [ -e "${FILE}" ]; then
    local leafName=`basename "${FILE}"`
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Copying ${FILE}."
    fi
    /usr/bin/ditto $opt "${FILE}" "${theDest}/${leafName}" || return 1
    fi
    done < "${theFile}"
    return 0
    # Copies a list of packages (full path, destination pairs contained in the file at $1) from source to .../System/Installation/Packages/
    CopyPackagesWithDestinationsFromFile()
    local theFile="$1"
    local opt=""
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    opt="-v"
    fi
    while read FILE
    do
    if [ -e "${FILE}" ]; then
    local leafName=`basename "${FILE}"`
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Copying ${FILE}."
    fi
    read SUB_PATH
    /usr/bin/ditto $opt "${FILE}" "${mountPoint}/Packages/${SUB_PATH}${leafName}" || return 1
    fi
    done < "${theFile}"
    return 0
    # Create an installer package in ${1} wrapping the supplied script ${2}
    CreateInstallPackageForScript()
    local tempDir="$1"
    local scriptPath="$2"
    local scriptName=`basename "${scriptPath}"`
    local entryDir=`pwd`
    local opt=""
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Create installer for script ${scriptName}"
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    opt="-v"
    fi
    fi
    # shouldn't exist on entry...
    if [ -e "${tempDir}/emptyDir" ]; then
    /bin/rm -rf "${tempDir}/emptyDir"
    fi
    # make some directories to work in
    /bin/mkdir $opt -p "${tempDir}/${scriptName}.pkg/Contents/Resources" || return 1
    /bin/mkdir $opt "${tempDir}/emptyDir" || return 1
    # Create Archive.pax.gz
    cd "${tempDir}/emptyDir"
    /bin/pax -w -x cpio -f "${tempDir}/${scriptName}.pkg/Contents/Archive.pax" .
    /usr/bin/gzip "${tempDir}/${scriptName}.pkg/Contents/Archive.pax"
    cd "${entryDir}"
    # Create the Archive.bom file
    /usr/bin/mkbom "${tempDir}/emptyDir/" "${tempDir}/${scriptName}.pkg/Contents/Archive.bom" || return 1
    # Create the Info.plist
    /bin/cat > "${tempDir}/${scriptName}.pkg/Contents/Info.plist" << END
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>CFBundleIdentifier</key>
    <string>com.apple.server.SystemImageUtility.${scriptName}</string>
    <key>CFBundleShortVersionString</key>
    <string>1</string>
    <key>IFMajorVersion</key>
    <integer>1</integer>
    <key>IFMinorVersion</key>
    <integer>0</integer>
    <key>IFPkgFlagDefaultLocation</key>
    <string>/tmp</string>
    <key>IFPkgFlagInstallFat</key>
    <false/>
    <key>IFPkgFlagIsRequired</key>
    <false/>
    <key>IFPkgFormatVersion</key>
    <real>0.10000000149011612</real>
    </dict>
    </plist>
    END
    echo "pkmkrpkg1" > "${tempDir}/${scriptName}.pkg/Contents/PkgInfo"
    echo "major: 1\nminor: 0" > "${tempDir}/${scriptName}.pkg/Contents/Resources/package_version"
    # Copy the script
    /bin/cp "$scriptPath" "${tempDir}/${scriptName}.pkg/Contents/Resources/postflight"
    # clean up
    /bin/rm -r "${tempDir}/emptyDir"
    return 0
    # Validate or create the requested directory
    CreateOrValidatePath()
    local targetDir="$1"
    if [ ! -d "${targetDir}" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Creating working path at ${targetDir}"
    fi
    /bin/mkdir -p "${targetDir}" || return 1
    fi
    # If any exist, apply any user accounts
    CreateUserAccounts()
    # $1 volume whose local node database to modify
    local count="${#userFullName[*]}"
    local targetVol="${1}"
    if [ $count -gt 0 ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Adding $count user account(s) to the image"
    fi
    for ((index=0; index<$count; index++)); do
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Adding user ${userFullName[$index]}"
    fi
    #lay down user here
    AddLocalUser "${targetVol}" "${userFullName[$index]}" "${userUnixName[$index]}" "${userIsAdmin[$index]}" "${userPassword[$index]}" "${userPassHint[$index]}" "${userImagePath[$index]}" "${userLanguage[$index]}"
    if [ $? != 0 ]; then
    echo "Failed to create the User '${userUnixName[$index]}'."
    return 1
    fi
    done
    # "touch"
    /usr/bin/touch "${targetVol}/private/var/db/.AppleSetupDone"
    /usr/bin/touch "${targetVol}/Library/Receipts/.SetupRegComplete"
    fi
    # retry the hdiutil detach until we either time out or it succeeds
    retry_hdiutil_detach()
    local mount_point="${1}"
    local tries=0
    local forceAt=0
    local limit=24
    local opt=""
    forceAt=$(($limit - 1))
    while [ $tries -lt $limit ]; do
    tries=$(( tries + 1 ))
    /bin/sleep 5
    echo "Attempting to detach the disk image again..."
    /usr/bin/hdiutil detach "${mount_point}" $opt
    if [ $? -ne 0 ]; then
    # Dump a list of any still open files on the mountPoint
    if [ "${scriptsDebugKey}" == "DEBUG" ]; then
    /usr/sbin/lsof +fg "${mount_point}"
    fi
    if [ $tries -eq $forceAt ]; then
    echo "Failed to detach disk image at '${mount_point}' normally, adding -force."
    opt="-force"
    fi
    if [ $tries -eq $limit ]; then
    echo "Failed to detach disk image at '${mount_point}'."
    exit 1
    fi
    else
    tries=$limit
    fi
    done
    # Create the dyld shared cache files
    DetachAndRemoveMount()
    local theMount="${1}"
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Detaching disk image"
    # Dump a list of any still open files on the mountPoint
    if [ "${scriptsDebugKey}" == "DEBUG" ]; then
    /usr/sbin/lsof +fg "${theMount}"
    fi
    fi
    # Finally detach the image and dispose the mountPoint directory
    /usr/bin/hdiutil detach "${theMount}" || retry_hdiutil_detach "${theMount}" || return 1
    /bin/rmdir "${theMount}" || return 1
    return 0
    # If the pieces exist, enable remote access for the shell image
    EnableRemoteAccess()
    local srcVol="${1}"
    local opt=""
    if [ -e "${srcVol}/usr/lib/pam/pam_serialnumber.so.2" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Enabling shell image remote access support"
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    opt="-v"
    fi
    fi
    # install some things (again which aren't part of BaseSystem) needed for remote ASR installs
    /usr/bin/ditto $opt "${srcVol}/usr/lib/pam/pam_serialnumber.so.2" "${mountPoint}/usr/lib/pam/pam_serialnumber.so.2" || return 1
    if [ -e "${srcVol}/usr/sbin/installer" ]; then
    /usr/bin/ditto $opt "${srcVol}/usr/sbin/installer" "${mountPoint}/usr/sbin/installer" || return 1
    fi
    # copy the sshd config and add our keys to the end of it
    if [ -e "${srcVol}/etc/sshd_config" ]; then
    /bin/cat "${srcVol}/etc/sshd_config" - > "${mountPoint}/etc/sshd_config" << END
    HostKey /private/var/tmp/ssh_host_key
    HostKey /private/var/tmp/ssh_host_rsa_key
    HostKey /private/var/tmp/ssh_host_dsa_key
    END
    fi
    fi
    return 0
    # If it exists, install the sharing names and/or directory binding support to the install image
    HandleNetBootClientHelper()
    local tempDir="${1}"
    local targetVol="${2}"
    local opt=""
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    opt="-v"
    fi
    if [ -e  "${tempDir}/bindingNames.plist" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Installing Directory Service binding information"
    fi
    /usr/bin/ditto $opt "${tempDir}/bindingNames.plist" "${targetVol}/etc/bindingNames.plist" || return 1
    /usr/sbin/chown root:wheel "${targetVol}/etc/bindingNames.plist"
    /bin/chmod 644 "${targetVol}/etc/bindingNames.plist"
    fi
    if [ -e  "${tempDir}/sharingNames.plist" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Installing Sharing Names support"
    fi
    /usr/bin/ditto $opt "${tempDir}/sharingNames.plist" "${targetVol}/etc/sharingNames.plist" || return 1
    /usr/sbin/chown root:wheel "${targetVol}/etc/sharingNames.plist"
    /bin/chmod 644 "${targetVol}/etc/sharingNames.plist"
    fi
    if [ -e  "${tempDir}/NetBootClientHelper" ]; then
    /usr/bin/ditto $opt "${tempDir}/NetBootClientHelper" "${targetVol}/usr/sbin/NetBootClientHelper" || return 1
    /usr/sbin/chown root:wheel "${targetVol}/usr/sbin/NetBootClientHelper"
    /bin/chmod 555 "${targetVol}/usr/sbin/NetBootClientHelper"
    /usr/bin/ditto $opt "${tempDir}/com.apple.NetBootClientHelper.plist" "${targetVol}/System/Library/LaunchDaemons/com.apple.NetBootClientHelper.plist" || return 1
    /usr/sbin/chown root:wheel "${targetVol}/System/Library/LaunchDaemons/com.apple.NetBootClientHelper.plist"
    /bin/chmod 644 "${targetVol}/System/Library/LaunchDaemons/com.apple.NetBootClientHelper.plist"
    # finally, make sure it isn't disabled...
    /usr/libexec/PlistBuddy -c "Delete :com.apple.NetBootClientHelper" "${targetVol}/var/db/launchd.db/com.apple.launchd/overrides.plist" > /dev/null 2>&1
    fi
    return 0
    # If any exist, install configuration profiles to the install image
    InstallConfigurationProfiles()
    local tempDir="${1}"
    local targetVol="${2}"
    local profilesDir="${targetVol}/var/db/ConfigurationProfiles"
    local opt=""
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    opt="-v"
    fi
    if [ -e  "${tempDir}/configProfiles.txt" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Installing Configuration Profiles"
    fi
    /bin/mkdir -p "${profilesDir}/Setup" || return 1
    # Make sure the perms are correct
    /usr/sbin/chown root:wheel "${profilesDir}"
    /bin/chmod 755 "${profilesDir}"
    /usr/sbin/chown root:wheel "${profilesDir}/Setup"
    /bin/chmod 755 "${profilesDir}/Setup"
    /usr/bin/touch "${profilesDir}/.profilesAreInstalled"
    CopyEntriesFromFileToPath "${tempDir}/configProfiles.txt" "${profilesDir}/Setup" || return 1
    # Enable MCX debugging
    if [ 1 == 1 ]; then
    if [ -e  "${targetVol}/Library/Preferences/com.apple.MCXDebug.plist" ]; then
    /usr/libexec/PlistBuddy -c "Delete :debugOutput" "${targetVol}/Library/Preferences/com.apple.MCXDebug.plist" > /dev/null 2>&1
    /usr/libexec/PlistBuddy -c "Delete :collateLogs" "${targetVol}/Library/Preferences/com.apple.MCXDebug.plist" > /dev/null 2>&1
    fi
    /usr/libexec/PlistBuddy -c "Add :debugOutput string -2" "${targetVol}/Library/Preferences/com.apple.MCXDebug.plist" > /dev/null 2>&1
    /usr/libexec/PlistBuddy -c "Add :collateLogs string 1" "${targetVol}/Library/Preferences/com.apple.MCXDebug.plist" > /dev/null 2>&1
    fi
    fi
    # Converts a list of scripts (full paths contained in the file at $1) into packages in $3
    InstallScriptsFromFile()
    local tempDir="${1}"
    local theFile="${2}"
    local targetDir="${3}"
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Converting scripts into install packages"
    fi
    while read FILE
    do
    if [ -e "${FILE}" ]; then
    # make an installer package out of the script
    CreateInstallPackageForScript "$tempDir" "${FILE}" || return 1
    # copy the resulting package to the Packages directory
    local leafName=`basename "${FILE}"`
    /usr/bin/ditto $opt "${tempDir}/${leafName}.pkg" "${targetDir}/${leafName}.pkg" || return 1
    # clean up
    /bin/rm -r "${tempDir}/${leafName}.pkg"
    fi
    done < "${theFile}"
    return 0
    # Prepare the source by deleting stuff we don't want to copy if sourcing a volume
    PostFlightDestination()
    local tempDir="${1}"
    local destDir="${2}"
    local opt=""
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Performing post install cleanup"
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ] ; then
    opt="-v"
    fi
    fi
    # delete the DS indices to force reindexing...
    if [ -e "${mountPoint}/var/db/dslocal/indices/Default/index" ]; then
    /bin/rm $opt "${mountPoint}/var/db/dslocal/indices/Default/index"
    fi
    # detach the disk and remove the mount folder
    DetachAndRemoveMount "${mountPoint}"
    if [ $? != 0 ]; then
    echo "Failed to detach and clean up the mount at '${mountPoint}'."
    return 1
    fi
    echo "Correcting permissions. ${ownershipInfoKey} $destDir"
    /usr/sbin/chown -R "${ownershipInfoKey}" "$destDir"
    # Prepare the source by deleting stuff we don't want to copy if sourcing a volume
    PreCleanSource()
    local srcVol="$1"
    local opt=""
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ] ; then
    opt="-v"
    fi
    fi
    if [ -e "$srcVol/private/var/vm/swapfile*" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Removing swapfiles on $1"
    fi
    /bin/rm $opt "$srcVol/private/var/vm/swapfile*"
    fi
    if [ -d "$srcVol/private/tmp" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Cleaning out /private/tmp on $1"
    fi
    /bin/rm -r $opt "$srcVol/private/tmp/*"
    fi
    if [ -d "$srcVol/private/var/tmp" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Cleaning out /private/var/tmp on $1"
    fi
    /bin/rm -r $opt "$srcVol/private/var/tmp/*"
    fi
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Cleaning out devices and volumes on $1"
    fi
    if [ -d "$srcVol/Volumes" ]; then
    /bin/rm -r $opt "$srcVol/Volumes/*"
    fi
    if [ -d "$srcVol/dev" ]; then
    /bin/rm $opt "$srcVol/dev/*"
    fi
    if [ -d "$srcVol/private/var/run" ]; then
    /bin/rm -r $opt "$srcVol/private/var/run/*"
    fi
    # Copy kernel and build the kext cache on the boot image
    PrepareKernelAndKextCache()
    local srcDir="$1"
    local destDir="$2"
    local opt=""
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Preparing the kernel and kext cache for t          /bin/rmdir "${theMount}" || return 1
    return 0
    # If the pieces exist, enable remote access for the shell image
    EnableRemoteAccess()
    local srcVol="${1}"
    local opt=""
    if [ -e "${srcVol}/usr/lib/pam/pam_serialnumber.so.2" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Enabling shell image remote access support"
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    opt="-v"
    fi
    fi
    # install some things (again which aren't part of BaseSystem) needed for remote ASR installs
    /usr/bin/ditto $opt "${srcVol}/usr/lib/pam/pam_serialnumber.so.2" "${mountPoint}/usr/lib/pam/pam_serialnumber.so.2" || return 1
    if [ -e "${srcVol}/usr/sbin/installer" ]; then
    /usr/bin/ditto $opt "${srcVol}/usr/sbin/installer" "${mountPoint}/usr/sbin/installer" || return 1
    fi
    # copy the sshd config and add our keys to the end of it
    if [ -e "${srcVol}/etc/sshd_config" ]; then
    /bin/cat "${srcVol}/etc/sshd_config" - > "${mountPoint}/etc/sshd_config" << END
    HostKey /private/var/tmp/ssh_host_key
    HostKey /private/var/tmp/ssh_host_rsa_key
    HostKey /private/var/tmp/ssh_host_dsa_key
    END
    fi
    fi
    return 0
    # If it exists, install the sharing names and/or directory binding support to the install image
    HandleNetBootClientHelper()
    local tempDir="${1}"
    local targetVol="${2}"
    local opt=""
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    opt="-v"
    fi
    if [ -e  "${tempDir}/bindingNames.plist" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Installing Directory Service binding information"
    fi
    /usr/bin/ditto $opt "${tempDir}/bindingNames.plist" "${targetVol}/etc/bindingNames.plist" || return 1
    /usr/sbin/chown root:wheel "${targetVol}/etc/bindingNames.plist"
    /bin/chmod 644 "${targetVol}/etc/bindingNames.plist"
    fi
    if [ -e  "${tempDir}/sharingNames.plist" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Installing Sharing Names support"
    fi
    /usr/bin/ditto $opt "${tempDir}/sharingNames.plist" "${targetVol}/etc/sharingNames.plist" || return 1
    /usr/sbin/chown root:wheel "${targetVol}/etc/sharingNames.plist"
    /bin/chmod 644 "${targetVol}/etc/sharingNames.plist"
    fi
    if [ -e  "${tempDir}/NetBootClientHelper" ]; then
    /usr/bin/ditto $opt "${tempDir}/NetBootClientHelper" "${targetVol}/usr/sbin/NetBootClientHelper" || return 1
    /usr/sbin/chown root:wheel "${targetVol}/usr/sbin/NetBootClientHelper"
    /bin/chmod 555 "${targetVol}/usr/sbin/NetBootClientHelper"
    /usr/bin/ditto $opt "${tempDir}/com.apple.NetBootClientHelper.plist" "${targetVol}/System/Library/LaunchDaemons/com.apple.NetBootClientHelper.plist" || return 1
    /usr/sbin/chown root:wheel "${targetVol}/System/Library/LaunchDaemons/com.apple.NetBootClientHelper.plist"
    /bin/chmod 644 "${targetVol}/System/Library/LaunchDaemons/com.apple.NetBootClientHelper.plist"
    # finally, make sure it isn't disabled...
    /usr/libexmountPoint=`mktemp -d "/tmp/mnt.XXXXXXXX"`
    errExit()
    echo "Execution of '`basename ${0}`' failed. Cleaning up."
    # detach the disk and remove the mount folder
    DetachAndRemoveMount "${mountPoint}"
    /bin/rm -r "${destPath}"
    exit 1
    # Set up for script debugging
    debug_opt=""
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ] ; then
    debug_opt="-v"
    fi
    # Prepare the destination
    CreateOrValidatePath "$destPath" || errExit
    # update progress information
    echo "${progressPrefix}_creatingImage_"
    if [ -e "${installSource}/BaseSystem.dmg" ]; then
    size=$2
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ] ; then
    echo "Creating disk image (Size: $size MB)"
    fi
    /usr/bin/hdiutil create "$destPath/$dmgTarget" -megabytes $size -volname "${dmgVolName}" -uid 0 -gid 80 -mode 1775 -layout "SPUD" -fs "$destVolFSType" -stretch 500g -ov -puppetstrings || errExit
    echo "${progressPrefix}_copyingSource_"
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ] ; then
    echo "Attaching disk image"
    fi
    /usr/bin/hdiutil attach "${destPath}/${dmgTarget}.dmg" -owners on -nobrowse -noautoopen -mountpoint "${mountPoint}" -quiet || errExit
    # Copy source Volume base system to
    /usr/bin/ditto $debug_opt "${installSource}" "${mountPoint}" || errExit
    else
    echo "This does not appear to be a Mac OS X Install DVD."
    errExit
    fi
    # If adding any additional packages or scripts
    if [ -e "${1}/OSInstall.collection" ]; then
    /usr/bin/ditto $debug_opt "${1}/OSInstall.collection" "${mountPoint}/Packages/OSInstall.collection" || errExit
    /usr/sbin/chown root:wheel "${mountPoint}/Packages/OSInstall.collection"
    # If adding any additional packages
    if [ -e "${1}/additionalPackages.txt" ]; then
    CopyPackagesWithDestinationsFromFile "${1}/additionalPackages.txt" || errExit
    fi
    # If adding any scripts
    if [ -e "${1}/additionalScripts.txt" ]; then
    InstallScriptsFromFile "${1}" "${1}/additionalScripts.txt" "${mountPoint}/Packages" || errExit
    fi
    fi
    # If it exists, install the partition data onto the install image
    ProcessAutoPartition "${1}" || errExit
    # If it exists, install minstallconfig.xml (AutoInstall data) onto the install image
    ProcessMinInstall "${1}" || errExit
    # update progress information
    echo "${progressPrefix}_buildingBooter_"
    # Copy kernel and boot loader
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Preparing the kernel and boot loader for the boot image"
    fi
    # make sure this doesn't exist
    if [ -e "${destPath}/i386" ]; then
    /bin/rm -rf "${destPath}/i386"
    fi
    /bin/mkdir -p $debug_opt "${destPath}/i386/x86_64" || errExit
    # copy these directly off the install media
    /usr/bin/ditto $debug_opt "${installSource}/boot.efi" "${destPath}/i386/booter" || errExit
    /usr/bin/chflags nohidden "${destPath}/i386/booter"
    # Grab the relevant portion of the com.apple.Boot.plist
    kernelFlags=`/usr/libexec/PlistBuddy -c "print :'Kernel Flags'" "${installSource}/Library/Preferences/SystemConfiguration/com.apple.Boot.plist"`
    /usr/libexec/PlistBuddy -c "add :'Kernel Flags' string ${kernelFlags}" "${destPath}/i386/com.apple.Boot.plist" > /dev/null 2>&1
    /usr/bin/ditto $debug_opt "${installSource}/System/Library/CoreServices/PlatformSupport.plist" "${destPath}/i386/PlatformSupport.plist" || errExit
    # extract the kernel & kernelcache for the boot shell
    /usr/bin/lipo -extract i386 "${mountPoint}/kernelcache" -output "${destPath}/i386/kernelcache" || errExit
    /usr/bin/lipo -extract x86_64 "${mountPoint}/kernelcache" -output "${destPath}/i386/x86_64/kernelcache" || errExit
    # Apply choice changes, if any
    if [ -e "${1}/MacOSXInstaller.choiceChanges" ]; then
    echo "Copy over package choice selection."
    /usr/bin/ditto $debug_opt "${1}/MacOSXInstaller.choiceChanges" "${mountPoint}/Packages/Extras/MacOSXInstaller.choiceChanges"
    fi
    # update progress information
    echo "${progressPrefix}_finishingUp_"
    # perform the final cleanup
    PostFlightDestination "${1}" "$destPath" || errExit
    errExit
    Vol/private/tmp" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Cleaning out /private/tmp on $1"
    fi
    /bin/rm -r $opt "$srcVol/private/tmp/*"
    fi
    if [ -d "$srcVol/private/var/tmp" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Cleaning out /private/var/tmp on $1"
    fi
    /bin/rm -r $opt "$srcVol/private/var/tmp/*"
    fi
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Cleaning out devices and volumes on $1"
    fi
    if [ -d "$srcVol/Volumes" ]; then
    /bin/rm -r $opt "$srcVol/Volumes/*"
    fi
    if [ -d "$srcVol/dev" ]; then
    /bin/rm $opt "$srcVol/dev/*"
    fi
    if [ -d "$srcVol/private/var/run" ]; then
    /bin/rm -r $opt "$srcVol/private/var/run/*"
    fi
    # Copy kernel and build the kext cache on the boot image
    PrepareKernelAndKextCache()
    local srcDir="$1"
    local destDir="$2"
    local opt=""
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Preparing the kernel and kext cache for tPERCENT:0.000000
    PERCENT:4.332841
    PERCENT:8.985722
    PERCENT:12.358444
    PERCENT:14.524864
    PERCENT:16.617430
    PERCENT:19.522402
    PERCENT:21.614967
    PERCENT:23.535204
    PERCENT:26.070902
    PERCENT:29.271296
    PERCENT:33.111767
    PERCENT:38.847858
    PERCENT:42.343674
    PERCENT:44.707043
    PERCENT:46.578041
    PERCENT:49.138355
    PERCENT:51.772526
    PERCENT:55.563763
    PERCENT:58.567207
    PERCENT:62.210735
    PERCENT:64.795670
    PERCENT:69.719353
    PERCENT:74.741508
    PERCENT:77.055641
    PERCENT:79.591331
    PERCENT:83.013290
    PERCENT:85.548988
    PERCENT:88.010834
    PERCENT:91.728210
    PERCENT:97.710487
    PERCENT:100.000000
    PERCENT:-1.000000
    Finalizing disk image.
    created: /Users/vm/Desktop/NetInstall of Install Mac OS X Lion/NetInstall.dmg
    /bin/rmdir "${theMount}" || return 1
    return 0
    # If the pieces exist, enable remote access for the shell image
    EnableRemoteAccess()
    local srcVol="${1}"
    local opt=""
    if [ -e "${srcVol}/usr/lib/pam/pam_serialnumber.so.2" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Enabling shell image remote access support"
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    opt="-v"
    fi
    fi
    # install some things (again which aren't part of BaseSystem) needed for remote ASR installs
    /usr/bin/ditto $opt "${srcVol}/usr/lib/pam/pam_serialnumber.so.2" "${mountPoint}/usr/lib/pam/pam_serialnumber.so.2" || return 1
    if [ -e "${srcVol}/usr/sbin/installer" ]; then
    /usr/bin/ditto $opt "${srcVol}/usr/sbin/installer" "${mountPoint}/usr/sbin/installer" || return 1
    fi
    # copy the sshd config and add our keys to the end of it
    if [ -e "${srcVol}/etc/sshd_config" ]; then
    /bin/cat "${srcVol}/etc/sshd_config" - > Creating working path at /Users/vm/Desktop/NetInstall of Install Mac OS X Lion
    Creating disk image (Size: 4062 MB)
    /tmp/ssh_host_dsa_key
    END
    fi
    fi
    return 0
    # If it exists, install the sharing names and/or directory binding support to the install image
    HandleNetBootClientHelper()
    local tempDir="${1}"
    local targetVol="${2}"
    local opt=""
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    opt="-v"
    fi
    if [ -e  "${tempDir}/bindingNames.plist" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Installing Directory Service binding information"
    fi
    /usr/bin/ditto $opt "${tempDir}/bindingNames.plist" "${targetVol}/etc/bindingNames.plist" || return 1
    /usr/sbin/chown root:wheel "${targetVol}/etc/bindingNames.plist"
    /bin/chmod 644 "${targetVol}/etc/bindingNames.plist"
    fi
    if [ -e  "${tempDir}/sharingNames.plist" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Installing Sharing Names support"
    fi
    /usr/bin/ditto $opt "${tempDir}/sharingNames.plist" "${targetVol}/etc/sharingNames.plist" || return 1
    /usr/sbin/chown root:wheel "${targetVol}/etc/sharingNames.plist"
    /bin/chmod 644 "${targetVol}/etc/sharingNames.plist"
    fi
    if [ -e  "${tempDir}/NetBootClientHelper" ]; then
    /usr/bin/ditto $opt "${tempDir}/NetBootClientHelper" "${targetVol}/usr/sbin/NetBootClientHelper" || return 1
    /usr/sbin/chown root:wheel "${targetVol}/usr/sbin/NetBootClientHelper"
    /bin/chmod 555 "${targetVol}/usr/sbin/NetBootClientHelper"
    /usr/bin/ditto $opt "${tempDir}/com.apple.NetBootClientHelper.plist" "${targetVol}/System/Library/LaunchDaemons/com.apple.NetBootClientHelper.plist" || return 1
    /usr/sbin/chown root:wheel "${targetVol}/System/Library/LaunchDaemons/com.apple.NetBootClientHelper.plist"
    /bin/chmod 644 "${targetVol}/System/Library/LaunchDaemons/com.apple.NetBootClientHelper.plist"
    # finally, make sure it isn't disabled...
    /usr/libex
    # update progress information
    echo "${progressPrefix}_creatingImage_"
    if [ -e "${installSource}/BaseSystem.dmg" ]; then
    size=$2
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ] ; then
    echo "Creating disk image (Size: $size MB)"
    fi
    /usr/bin/hdiutil create "$destPath/$dmgTarget" -megabytes $size -volname "${dmgVolName}" -uid 0 -gid 80 -mode 1775 -layout "SPUD" -fs "$destVolFSType" -stretch 500g -ov -puppetstrings || errExit
    echo "${progressPrefix}_copyingSource_"
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ] ; then
    echo "Attaching disk image"
    fi
    /usr/bin/hdiutil attach "${destPath}/${dmgTarget}.dmg" -owners on -nobrowse -noautoopen -mountpoint "${mountPoint}" -quiet || errExit
    # Copy source Volume base system to
    /usr/bin/ditto $debug_opt "${installSource}" "${mountPoint}" || errExit
    else
    echo "This does not appear to be a Mac OS X Install DVD."
    errExit
    fi
    # If adding any additional packages or scripts
    if [ -e "${1}/OSInstall.collection" ]; then
    /usr/bin/ditto $debug_opt "${1}/OSInstall.collection" "${mountPoint}/Packages/OSInstall.collection" || errExit
    /usr/sbin/chown root:wheel "${mountPoint}/Packages/OSInstall.collection"
    # If adding any additional packages
    if [ -e "${1}/additionalPackages.txt" ]; then
    CopyPackagesWithDestinationsFromFile "${1}/additionalPackages.txt" || errExit
    fi
    # If adding any scripts
    if [ -e "${1}/additionalScripts.txt" ]; then
    InstallScriptsFromFile "${1}" "${1}/additionalScripts.txt" "${mountPoint}/Packages" || errExit
    fi
    fi
    # If it exists, install the partition data onto the install image
    ProcessAutoPartition "${1}" || errExit
    # If it exists, install minstallconfig.xml (AutoInstall data) onto the install image
    ProcessMinInstall "${1}" || errExit
    # update progress information
    echo "${progressPrefix}_buildingBooter_"
    # Copy kernel and boot loader
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Preparing the kernel and boot loader for the boot image"
    fi
    # make sure this doesn't exist
    if [ -e "${destPath}/i386" ]; then
    /bin/rm -rf "${destPath}/i386"
    fi
    /bin/mkdir -p $debug_opt "${destPath}/i386/x86_64" || errExit
    # copy these directly off the install media
    /usr/bin/ditto $debug_opt "${installSource}/boot.efi" "${destPath}/i386/booter" || errExit
    /usr/bin/chflags nohidden "${destPath}/i386/booter"
    # Grab the relevant portion of the com.apple.Boot.plist
    kernelFlags=`/usr/libexec/PlistBuddy -c "print :'Kernel Flags'" "${installSource}/Library/Preferences/SystemConfiguration/com.apple.Boot.plist"`
    /usr/libexec/PlistBuddy -c "add :'Kernel Flags' string ${kernelFlags}" "${destPath}/i386/com.apple.Boot.plist" > /dev/null 2>&1
    /usr/bin/ditto $debug_opt "${installSource}/System/Library/CoreServices/PlatformSupport.plist" "${destPath}/i386/PlatformSupport.plist" || errExit
    # extract the kernel & kernelcache for the boot shell
    /usr/bin/lipo -extract i386 "${mountPoint}/kernelcache" -output "${destPath}/i386/kernelcache" || errExit
    /usr/bin/lipo -extract x86_64 "${mountPoint}/kernelcache" -output "${destPath}/i386/x86_64/kernelcache" || errExit
    # Apply choice changes, if any
    if [ -e "${1}/MacOSXInstaller.choiceChanges" ]; then
    echo "Copy over package choice selection."
    /usr/bin/ditto $debug_opt "${1}/MacOSXInstaller.choiceChanges" "${mountPoint}/Packages/Extras/MacOSXInstaller.choiceChanges"
    fi
    # update progress information
    echo "${progressPrefix}_finishingUp_"
    # perform the final cleanup
    PostFlightDestination "${1}" "$destPath" || errExit
    rrExit
    # Apply choice changes, if any
    if [ -e "${1}/MacOSXInstaller.choiceChanges" ]; then
    echo "Copy over package choice selection."
    /usr/bin/ditto $debug_opt "${1}/MacOSXInstaller.choiceChanges" "${mountPoint}/Packages/Extras/MacOSXInstaller.choiceChanges"
    fi
    # update progress information
    echo "${progressPrefix}_finishingUp_"
    # perform the final cleanup
    PostFlightDestination "${1}" "$destPath" || errExit
    tDestination "${1}" "$destPath" || errExit
    errExit
    Vol/private/tmp" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Cleaning out /private/tmp on $1"
    fi
    /bin/rm -r $opt "$srcVol/private/tmp/*"
    fi
    if [ -d "$srcVol/private/var/tmp" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Cleaning out /private/var/tmp on $1"
    fi
    /bin/rm -r $opt "$srcVol/private/var/tmp/*"
    fi
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Cleaning out devices and volumes on $1"
    fi
    if [ -d "$srcVol/Volumes" ]; then
    /bin/rm -r $opt "$srcVol/Volumes/*"
    fi
    if [ -d "$srcVol/dev" ]; then
    /bin/rm $opt "$srcVol/dev/*"
    fi
    if [ -d "$srcVol/private/var/run" ]; then
    /bin/rm -r $opt "$srcVol/private/var/run/*"
    fi
    # Copy kernel and build the kext cache on the boot image
    PrepareKernelAndKextCache()
    local srcDir="$1"
    local destDir="$2"
    local opt=""
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    Stopping image creation.
    Terminating script!
    Image creation failed.

  • Windows 8 Upgrade Assistant failed on Satellite P775

    I tried running the Windows 8 Upgrade Assistant on my Satellite P775.
    It started by displaying
    Checking Components; download Windows 8 Components data.
    Reading Components.
    Got component TOSHIBA Wireless LAN Indicator
    ... etc ...
    Got Component TOSHIBA Contrasena de supervisor
    Reading Windows Components.
    then displayed a Message Box
    "Failed to read Target (Windows 8) INI file."
    How can I solve this?
    Thanks

    Thanks for the reply.
    Yes I followed that procedure.
    My model is Satellite P775-112 PSBY3E and is listed as being compatible
    After installing Windows 8, I noticed that the DVD drive was no longer accessible, as described in the following thread: http://forums.computers.toshiba-europe.com/forums/thread.jspa?threadID=68222&tstart=0
    So I disabled the Windows Service "Toshiba Optical Disc Drive Service" (TODDSrv.exe 1.0.0.8), and the DVD drive is now visible. However Toshiba Video Player still does not work (says it has compatibility issues) and I can not view DVD videos.
    I then ran the Windows 8 Upgrade Assistant, which failed immediately with the error "Failed to read Target (Windows 8) INI file".
    I found some posts on the forum with a similar error with the Windows 7 Upgrade Assistant (Failed to read Target (Windows 7) INI file. None of the posts has a clear description of what this error means but I've tried all of the suggestions.
    Here's a list of what I've tried:
    - Rebooted
    - Upgraded BIOS to latest version (2.10)
    - Run Upgrade Assistant as Administrator
    - Run Upgrade Assistant with "Toshiba Optical DIsc Drive Service TODDSrv.exe 1.0.0.8 started or stopped.
    My main problems at the moment are:
    - Toshiba Optical DIsc Drive Service causes DVD drive to disappear
    - Toshiba Video Player won't run
    - No way to view DVDs
    I'd be happy to install the drivers and applications individually if the Upgrade Assistant doesn't work - is there anywhere I can download them?

  • HT202008 I am having issues with my Window 7 on boot camp. My hardware is Macbook Pro Mid 2010 model and working on OS X 10.9.5. Recently I went to windows 7 to do a system upgrade but failed and was told to update the bootcamp drivers.

    I am having issues with my Window 7 on boot camp. My hardware is Macbook Pro Mid 2010 model and working on OS X 10.9.5. Recently I went to windows 7 to do a system upgrade but failed and was told to update the bootcamp drivers. I installed boot camp5 but seem to be the wrong version and change to boot camp 4 which was updated okay. However I still cannot do the updates. Can someone advice me please? Thank you!

    Please see Boot Camp: System requirements for Microsoft Windows operating systems - Apple Support for the appropriate version of drivers related to the specific version of Windows 7.
    MacBook Pro
    (13-inch, Mid 2010)
    4
    4
    DVD
    DVD
    DVD
    MacBook Pro
    (15-inch, Mid 2010)
    5
    5
    4
    DVD
    DVD
    DVD
    MacBook Pro
    (17-inch, Mid 2010)
    5
    5
    4
    DVD
    DVD
    DVD
    Be careful with Windows Updates, especially driver updates. Standard WHQL drivers can cause problems.

Maybe you are looking for

  • Can I Have two Ipods on one itunes?

    Hello I need help.I have a nano 2G but I'm going to get an ipod classic.Can I just plug the new ipod to my current iTunes and use both ipods with it?.

  • ITunes will not allow me to update

    When I click the update button, it tells me the newest version (10.6.3) that I should download, but when I try to download that, Software Update comes up and tells me that there is nothing new to update. I am running iTunes 10.4 on a Mac OsX. I have

  • Java apps not working right

    I lately have found problems with Java apps not working correctly. For example, in Yahoo Widgets I cannot get any widget preferences to display; in Apple's Java Preferences for J2SE 5.0 the preference window opens but is blank; and in JBidwatcher the

  • Why does my iPad charge very slowly

    I have charged my iPad for 3 hours and its only at 20% why does it charge so slowly? Please help I am going on vacation and I need my iPad. I have tried clearing my storage up a lot but it has done nothing.

  • How can i change my AppleID (mail address) in iCloud?

    I've changed my email address. It was quite simple to change this for my AppleID, but my iCloud-account is still registered on my former address. It keeps asking for my password in a pop-up, but obviously I don't have the right password. (It for sure