Merge pull request #154 from MarcWeber/submit/x11-wacom-intuos5-fix
fix wacom hotplug and all Intuos 5 issues
This commit is contained in:
commit
e155187a8e
@ -16,41 +16,15 @@ in
|
|||||||
|
|
||||||
enable = mkOption {
|
enable = mkOption {
|
||||||
default = false;
|
default = false;
|
||||||
description = "Whether to enable the Wacom touchscreen/digitizer/tablet.";
|
description = ''
|
||||||
};
|
Whether to enable the Wacom touchscreen/digitizer/tablet.
|
||||||
|
If you ever have any issues such as, try switching to terminal (ctrl-alt-F1) and back
|
||||||
|
which will make Xorg reconfigure the device ?
|
||||||
|
|
||||||
device = mkOption {
|
If you're not satisfied by the default behaviour you can override
|
||||||
default = null;
|
<option>environment.etc."X11/xorg.conf.d/50-wacom.conf"</option> in
|
||||||
example = "/dev/ttyS0";
|
configuration.nix easily.
|
||||||
description = "Device to use. Set to null for autodetect (think USB tablet).";
|
'';
|
||||||
};
|
|
||||||
|
|
||||||
forceDeviceType = mkOption {
|
|
||||||
default = null;
|
|
||||||
example = "ISDV4";
|
|
||||||
description = "Some models (think touchscreen) require the device type to be specified. Set to null for autodetect (think USB tablet).";
|
|
||||||
};
|
|
||||||
|
|
||||||
stylusExtraConfig = mkOption {
|
|
||||||
default = "";
|
|
||||||
example = ''
|
|
||||||
Option "Button1" "2"
|
|
||||||
'';
|
|
||||||
description = "Lines to be added to Wacom_stylus InputDevice section.";
|
|
||||||
};
|
|
||||||
|
|
||||||
eraserExtraConfig = mkOption {
|
|
||||||
default = "";
|
|
||||||
example = ''
|
|
||||||
Option "Button2" "3"
|
|
||||||
'';
|
|
||||||
description = "Lines to be added to Wacom_eraser InputDevice section.";
|
|
||||||
};
|
|
||||||
|
|
||||||
cursorExtraConfig = mkOption {
|
|
||||||
default = "";
|
|
||||||
example = "";
|
|
||||||
description = "Lines to be added to Wacom_cursor InputDevice section.";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -66,54 +40,7 @@ in
|
|||||||
|
|
||||||
services.udev.packages = [ pkgs.xf86_input_wacom ];
|
services.udev.packages = [ pkgs.xf86_input_wacom ];
|
||||||
|
|
||||||
services.xserver.serverLayoutSection =
|
environment.etc."X11/xorg.conf.d/50-wacom.conf".source = "${pkgs.xf86_input_wacom}/share/X11/xorg.conf.d/50-wacom.conf";
|
||||||
''
|
|
||||||
InputDevice "Wacom_stylus"
|
|
||||||
InputDevice "Wacom_eraser"
|
|
||||||
InputDevice "Wacom_cursor"
|
|
||||||
'';
|
|
||||||
|
|
||||||
services.xserver.config =
|
|
||||||
''
|
|
||||||
Section "InputDevice"
|
|
||||||
Driver "wacom"
|
|
||||||
Identifier "Wacom_stylus"
|
|
||||||
${optionalString (cfg.device != null) ''
|
|
||||||
Option "Device" "${cfg.device}"
|
|
||||||
''}
|
|
||||||
Option "Type" "stylus"
|
|
||||||
${optionalString (cfg.forceDeviceType != null) ''
|
|
||||||
Option "ForceDevice" "${cfg.forceDeviceType}"
|
|
||||||
''}
|
|
||||||
${cfg.stylusExtraConfig}
|
|
||||||
EndSection
|
|
||||||
|
|
||||||
Section "InputDevice"
|
|
||||||
Driver "wacom"
|
|
||||||
Identifier "Wacom_eraser"
|
|
||||||
${optionalString (cfg.device != null) ''
|
|
||||||
Option "Device" "${cfg.device}"
|
|
||||||
''}
|
|
||||||
Option "Type" "eraser"
|
|
||||||
${optionalString (cfg.forceDeviceType != null) ''
|
|
||||||
Option "ForceDevice" "${cfg.forceDeviceType}"
|
|
||||||
''}
|
|
||||||
${cfg.eraserExtraConfig}
|
|
||||||
EndSection
|
|
||||||
|
|
||||||
Section "InputDevice"
|
|
||||||
Driver "wacom"
|
|
||||||
Identifier "Wacom_cursor"
|
|
||||||
${optionalString (cfg.device != null) ''
|
|
||||||
Option "Device" "${cfg.device}"
|
|
||||||
''}
|
|
||||||
Option "Type" "cursor"
|
|
||||||
${optionalString (cfg.forceDeviceType != null) ''
|
|
||||||
Option "ForceDevice" "${cfg.forceDeviceType}"
|
|
||||||
''}
|
|
||||||
${cfg.cursorExtraConfig}
|
|
||||||
EndSection
|
|
||||||
'';
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -434,6 +434,7 @@ in
|
|||||||
xorg.xlsclients
|
xorg.xlsclients
|
||||||
xorg.xset
|
xorg.xset
|
||||||
xorg.xsetroot
|
xorg.xsetroot
|
||||||
|
xorg.xinput
|
||||||
xorg.xprop
|
xorg.xprop
|
||||||
pkgs.xterm
|
pkgs.xterm
|
||||||
pkgs.xdg_utils
|
pkgs.xdg_utils
|
||||||
|
Loading…
x
Reference in New Issue
Block a user