1

I just bought a Samsung Notebook 9 Pro expecting to use its built-in S-pen as a stylus with GIMP. Though the laptop advertises having 4096 levels of pressure as well as tilt control, I cannot use the pen as anything more than a mouse replacement in GIMP. When I go to add external input devices, the pen doesn't show up. I assume this is because it is passive, having no battery or mind of its own.

Are there any workarounds to get GIMP to see the pressure levels, or is GIMP not the right program for my needs?

pa4080
  • 29,831

1 Answers1

4

If the hardware is properly installed next step is to tell GIMP about this input device. I have Lenovo ThinkPad X230 Tablet with Ubuntu 16.04 and I have not installed any other additional drivers. I've just tested the instructions from this video on my tablet and now the pen works with presure. The steps are:

1. Open GIMP and go to EditPreferencesInput DevicesConfigure Extended Input Devices...

2. On the left side into the opened window will be displayed a list with the alternative input devices. Find and select your device.

3. Then on the right side click on the drop-down mode menu and select screen or window. Then click on save and close the preferences window.

4. Now you can use this device. You can setup its behaviour by the GIMP's feature Paint dynamics.

enter image description here


I've looked at several photos of Samsung Notebook 9 Pro and I think this pen device isn't passive.

In my opinion it is active and it uses so called wacom technology or something similar from other manufacturer. In short: In the pen have small magnets and coils, that create electromagnetic field with various characteristics, etc...


When the pen works like a mouse, in most cases, it is properly installed. But if it is not, you may follow the article Wacom/Latest Driver from the Ubuntu Community Help Wiki.


You can find which is your device by the commands lsusb and xinput. The output of these commands within my system is:

$ lsusb | grep Wacom
Bus 002 Device 003: ID 056a:00e6 Wacom Co., Ltd 

$ xinput | grep Wacom
   ↳ Wacom ISDv4 E6 Pen stylus                  id=10   [slave  pointer  (2)]
   ↳ Wacom ISDv4 E6 Finger touch                id=11   [slave  pointer  (2)]
   ↳ Wacom ISDv4 E6 Pen eraser                  id=16   [slave  pointer  (2)]

Optionally you can use the command lsinput from the package input-utils.

Additionally you can investigate how the device works and which are its characteristics by the command evtest. For example my stylus provides only 255 levels of pressure:The full output is here

$ sudo evtest

Available devices:
...
/dev/input/event5:  Wacom ISDv4 E6 Pen
/dev/input/event6:  Wacom ISDv4 E6 Finger
...
Select the device event number [0-16]: 5 

 Input driver version is 1.0.1
 Input device ID: bus 0x3 vendor 0x56a product 0xe6 version 0x111
 Input device name: "Wacom ISDv4 E6 Pen"
 Supported events:
    Event type 0 (EV_SYN)
      ...
    Event code 24 (ABS_PRESSURE)
      Value      0
      Min        0
      Max      255
  • Don't close the program, just pressing the stylus to the screen and read the result. You shall see lines as these:

    Event: time 15.., type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 108
    Event: time 15.., type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 58
    Event: time 15.., type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 234
    
pa4080
  • 29,831
  • 2
    Nice! Sounds like the pen works similar to an RFID tag -- the tablet has an RF field, the pen uses that for power and sends a pulse when you click the button, otherwise just resonates to the table/screen can locate it. – Zeiss Ikon Sep 28 '17 at 18:57
  • Thanks for the very detailed answer. Sorry if I wasn't clear, I'm using Windows. I know this is AskUbuntu but this is where I found all the GIMP-related answers. I still have my basic problem which is that GIMP doesn't see my pen - it's not in the list of external input devices. I don't really know how to install it. It came with the laptop. I found a device driver called PenS2Helper Device. – JohannesKepler Sep 30 '17 at 23:19
  • Hi, @JohannesKepler, unfortunately I can't help here. I've experienced the same issue within Windows. – pa4080 Oct 02 '17 at 07:24
  • Okay thank you very much for the answer! I'll accept it since I'm sure it will really help Ubuntu users. For any Windows users, I would suggest not using GIMP since it isn't really built for touch control. Even if you can get brush control, there's no on-screen undo button or easy way to pan the view with touch. There are actually some nice Windows apps with lots of features - for $20 or so. – JohannesKepler Oct 03 '17 at 12:18