A következő címkéjű bejegyzések mutatása: wacom. Összes bejegyzés megjelenítése
A következő címkéjű bejegyzések mutatása: wacom. Összes bejegyzés megjelenítése

2015. január 25.

Nautilus Scripts for Tablet screen rotation

After some workaround in the past, I started using nautilus scripts to rotate my Tablet display together with the stylus and eraser.
(I moved this topic now to a separate post, because the original post is outdated)

#!/bin/sh
# for Lucid Lynx to rotate the display 180 degree
xrandr -o inverted
xsetwacom set 'Serial Wacom Tablet' Rotate HALF


#!/bin/sh
# for Lucid Lynx to rotate the display 90 degree to the left
xrandr -o left
xsetwacom set 'Serial Wacom Tablet' Rotate CCW


#!/bin/sh
# for Lucid Lynx to rotate the display back to normal
xrandr -o normal
xsetwacom set 'Serial Wacom Tablet' Rotate NONE


#!/bin/sh
# for Lucid Lynx to rotate the display 90 degree to the right (to take notes)
xrandr -o right
xsetwacom set 'Serial Wacom Tablet' Rotate CW

2015. január 8.

Gnome Flashback Services personalization on Ubuntu 14.04 LTS

 Here are the settings and adjustments I made on Gnome Flashback Services (with Metacity) to meet my needs:

Setting up HP Compaq TC4400's native features

Pen features
  • Pen, eraser and button are recognized out of the box.
  • Pressure sensitivity has to be set specifically for the software you use.
  • Gimp setup for pen usage (pressure sensitivity and differentiation between the pen and the eraser:
    Gimp > Edit > Input devices > Serial Wacom Tablet eraser/stylus > set Mode "screen"
Screen rotation
On-screen buttons
  • Ctrl-alt-del button is recognized out of the box.
  •  Jog dial for scrolling: the code in my previously published solution works fine.
  • Pen activated buttons: not working. Linked solution have not been tested.
  • Fingerprint Sensor: not working. No possible solution have been tested.
  • Ambient Light Sensor: not working. No possible solution have been tested.

Setting up everything else

Terminal:

Terminal usage
  • works as usual. 
  • keyboard shortcut (native) to open: Ctrl+Alt+T
Bash scripts


Desktop:
 
 Workspaces:
  • works as usual (although only in Metacity version of Gnome2 Flashback)
  • to configure: right click on the workspaces icon in the bottom right corner of the screen > Preferences
  • keyboard shortcut (native) to navigate between workspaces: Ctrl+Alt + arrow keys
Menu panel (top and bottom) customization:
  • works as usual (except for how to reach the right click menu)
  • Alt+ right click to reach the panel menu


Synaptic Package Manager
  • install from Software Center
  • works as usual


File manager 

Nautilus
Nautilus went through major changes since Lucid Lynx, so let's see what remains of it:
  • Nautilus was renamed to "Files"
  • Compact View --> removed
  • File or folder selection by simply typing --> still exists
  • New Document > Empty Document --> still exists
  • Menu bar --> removed.
  • Menu button --> added. It's a gear wheel icon in the top right corner
  • ‘Go’ menu --> removed
  • Enter Location... --> added
  • F3 split screen --> removed (this is most annoying!)
  • Tabs --> still exists.
  • ‘tree’ view --> not default for List view, but you can set it in Preferences
  • Bookmark menu --> still exists. Only shown if there are items in it. 
  • Locations' default bookmarks --> added. Cannot be removed and icon cannot be changed, but name and location can be edited.
  • Backspace shortcut to return to parent folder --> still exists.
Nautilus scripts
  • Scripts folder was moved from /home/user/.gnome2/nautilus-scripts to /home/user/.local/share/nautilus/scripts
  • Right clicking to reach Scripts menu only works when you click on a file or folder.
  • Otherwise works as usual.
  • A graphical user interface to manage nautilus scripts now exists.
 Nemo
 Nemo is an alternative to "Files" (Nautilus).

  • can be installed from Software Center ("Files (nemo)")
  • works just like the good old Nautilus, with F3 dual pane and every other feature.
Nemo scripts
  • works just like Nautilus scripts.
  • scripts folder is /home/user/.gnome2/nemo-scripts
I chose Nemo as my default Ubuntu 14.04 File manager.
To set Nemo to be the default file manager, you have to follow these steps:
  1. To make Nemo the default file manager run in terminal:
    xdg-mime default nemo.desktop inode/directory application/x-gnome-saved-search
  2. To make Nemo handle the desktop run in terminal:
    gsettings set org.gnome.desktop.background show-desktop-icons false
    gsettings set org.nemo.desktop show-desktop-icons true
    
  3. (Optionally) To remove desktop shortcuts created by Nemo run in terminal:
    gsettings set org.nemo.desktop home-icon-visible false; gsettings set org.nemo.desktop trash-icon-visible false; gsettings set org.nemo.desktop computer-icon-visible false; gsettings set org.nemo.desktop volumes-visible false
    
More information on Nemo can be found here and here.

2012. december 31.

Multi-screen tablet usage: configuring the displays

ATTENTION! THIS POST IS OUTDATED!
In later editions of xinput it is possible to map the input device to the tablet screen automatically by using the 'xinput --map-to-crtc <device> <crtc>' option.
Check device with 'xinput list' and check crtc with  'xrandr'.
In my case the sylus was '12', the eraser '14' and the laptop screen 'LVDS1'


I had some time to take care about this problem of configuring the tablet screen to be able to take notes while reading stuff from the external display.

Here's my solution:

Make a nautilus script. It makes life easier.
You'll have to run all codes every time, otherwise this won't work.

Here's the pattern to use:
xsetwacom set 'Serial Wacom Tablet' Rotate [NONE | CW | CCW | HALF]
xsetwacom set 'Serial Wacom Tablet eraser' Rotate [NONE | CW | CCW | HALF]
xsetwacom --set "Serial Wacom Tablet" "TwinView" none
xsetwacom --set "Serial Wacom Tablet eraser" "TwinView" none
xinput -set-prop "Serial Wacom Tablet" "Wacom Tablet Area" x1, y1, x2, y2
xinput -set-prop "Serial Wacom Tablet eraser" "Wacom Tablet Area" x1, y1, x2, y2
Here's how to do it:
The amount to multiply resolution pixel numbers is: 24,2
You multiply with this number, and than round the number to a whole.

How to define x1, y1, x2 and y2?





2011. november 17.

Workaround with TwinView

ATTENTION! THIS POST IS OUTDATED!

FINALLY:

xsetwacom --set "Serial Wacom Tablet" "TwinView" horizontal
xinput -set-prop "Serial Wacom Tablet" "Wacom Tablet Area" -24780, -12390, 0, 18630
xsetwacom --set "Serial Wacom Tablet eraser" "TwinView" none
xinput -set-prop "Serial Wacom Tablet eraser" "Wacom Tablet Area" -24780, -12390, 24780, 18630

or, sometimes they work with the same settings... still testing... still testing...:

Wacom options

xsetwacom --list
xsetwacom --list --verbose
xsetwacom --list param
xsetwacom --get "[device]" all
xsetwacom set "[device]" "[option]" [parameters]

xinput list
xinput list-props [id]
xinput set-prop "[device]" "[option]" [parameters]

man wacom

gedit /usr/lib/X11/xorg.conf.d/10-wacom.conf

2011. március 17.

Sorting out input devices 5.

For a temporary solution, here are the codes to turn the WACOM device on and off:

~$ xinput -set-prop "Serial Wacom Tablet" "Device Enabled" 0
~$ xinput -set-prop "Serial Wacom Tablet" "Device Enabled" 1


0 in for turning it off and 1 is for turning it on.

EDIT:
in my case, when turning on the Wacom device, screen dimensions are off, so I had to add an extra line to the nautilus script:
~$ xinput -set-prop "Serial Wacom Tablet" "325" 0, 0, 24780, 18630

or

~$ xinput -set-prop "Serial Wacom Tablet" "Wacom Tablet Area" 0, 0, 24780, 18630

2011. március 11.

Sorting out input devices 4.

As I wrote in the previous post, the pen tip cursor started jumping.
This time I did not only separate the Eraser into a new cursor, but I did it with the Pen too, so now there are 3 cursors on my desktop, and I'm waiting for one of them to jump.

2010. június 9.

Sorting out input devices 3.

Okay, so the cursor jumped again after the last changes.
I changed the /usr/lib/X11/xorg.conf.d/10-wacom.conf like this:

Section "InputClass"
Identifier "Wacom serial class"
MatchProduct "Serial Wacom Tablet"
MatchDevicePath "/dev/ttyS0"
Driver "wacom"
# Option "Device""/dev/ttyS0"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4"
Option "Button2" "3"
# Option "Button3" "4"
Option "TPCButton" "on"
EndSection

Section "InputClass"
Identifier "Wacom serial class"
MatchProduct "Serial Wacom Tablet eraser"
MatchDevicePath "/dev/ttyS0"
Driver "wacom"
# Option "Device""/dev/ttyS0"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4"
Option "TPCButton" "on"
EndSection


and now the system doesn't recognize the eraser. (this wasn't intended)
However, the jumping never happened ever since, and that was already about a week ago.

2010. június 1.

Sorting out input devices 2.

I didn't experience the cursor jumping jet today.
What I did today was

~$ sudo gedit /usr/lib/X11/xorg.conf.d/10-wacom.conf

now it looks like:

Section "InputClass"
Identifier "Wacom serial class"
MatchProduct "Serial Wacom Tablet"
MatchDevicePath "/dev/ttyS0"
Driver "wacom"
# Option "Device""/dev/ttyS0"
# Option "Type" "stylus"
Option "ForceDevice" "ISDV4"
Option "Button2" "3"
# Option "Button3" "4"
Option "TPCButton" "on"
EndSection

Section "InputClass"
Identifier "Wacom serial class"
MatchProduct "Serial Wacom Tablet eraser"
MatchDevicePath "/dev/ttyS0"
Driver "wacom"
# Option "Device""/dev/ttyS0"
# Option "Type" "eraser"
Option "ForceDevice" "ISDV4"
Option "TPCButton" "on"
EndSection


And works just right. We'll see what's gonna happen with the jumping.
What I basically did here was to add eraser and add proper device path, and remove unnecessary entries, like the one for supporting touch, and another one, which I don't know what it was for.

I didn't try removing the #-s jet. I jus put them in in case I want to adjust the file further to match what xorg.conf used to be before Lucid.

2010. május 31.

Sorting out input devices

The general problem is:
The cursor jumps around and clicks on things. As described here.
This post is dedicated to cornering and trying to solve the problem.
EDIT: as it turned out it was a hardware problem.

2010. május 23.

Setting the pen button to work

As written here, in 10.04 we don't use xorg.conf anymore. We use
gksudo gedit /usr/lib/X11/xorg.conf.d/10-wacom.conf

instead.
And what we do is, that we put Option "Button2" "3" under the section that is for the pen, like here:
Section "InputClass"
Identifier "Wacom serial class"
MatchProduct "Serial Wacom Tablet"
Driver "wacom"
Option "ForceDevice" "ISDV4"
Option "Button2" "3"
Option "TPCButton" "on"
EndSection



An alternative solution is to put the
# Custom wacom settings.
xsetwacom set 'Serial Wacom Tablet' 'Button2' '3'

lines into our .profile file, in our home directory. (it's a hidden file)

2010. március 2.

Screen rotation with stylus rotation on Karmic

Here's what changed:

To reach metacity type in terminal: gconf-editor /apps/metacity

To rotate the screen use xinput --list to determine the nape of the stylus, and replace "stylus" to the new name in the rotate script. My stylus has the name of: "Wacom Serial Tablet PC Pen Tablet/Digitizer"

2008. június 4.

How to get the 3 onscreen tablet buttons working?

ATTENTION! THIS POST IS OUTDATED!

1. Download the latest LinuxWacom.
2. Install the following packages through Synaptic:
  • tcl8.4
  • tcl8.4-dev
  • tk8.4
  • tk8.4-dev
  • xserver-xorg-dev
  • libncurses5-dev
...and dependancies.

3. Unpack the linuxwacom tar.gz
4. Modify the /src/xdrv/wcmISDV4.c as follows (add the lines in blue):
/* Coordinate data bit check */
if (data[0] & 0x40)
{
if ((int)data[0] == 0xc1)
{
if (data[1] & 0x07)
{
ds = &common->wcmChannel[0].work;
/* Now fool it into thiking it's in proximity */
ds->proximity = 1;
ds->buttons = ((data[1] & 0x07) << 3);
xf86WcmEvent(common,0,ds);
}
}
return common->wcmPktLength;
}
}
5. Modify the src/xdrv/wcmCommon.c as follows (one change in blue)
/*****************************************************************************
* xf86WcmSendButtons --
* Send button events by comparing the current button mask with the
* previous one.
****************************************************************************/

static void xf86WcmSendButtons(LocalDevicePtr local, int buttons, int rx, int ry,
int rz, int v3, int v4, int v5)
{
int button, mask, bsent = 0;
WacomDevicePtr priv = (WacomDevicePtr) local->private;
WacomCommonPtr common = priv->common;
DBG(6, priv->debugLevel, ErrorF("xf86WcmSendButtons "
"buttons=%d for %s\n", buttons, local->name));

/* Tablet PC buttons. */
if ( common->wcmTPCButton && !IsCursor(priv) && !IsPad(priv) && !IsEraser(priv) )
{
if ( buttons & 57 )
{
if ( !(priv->flags & TPCBUTTONS_FLAG) )
{
priv->flags |= TPCBUTTONS_FLAG;

bsent = 0;

/* send all pressed buttons down */
for (button=2; button<=MAX_BUTTONS; button++) { mask = 1 << (button-1); if ( buttons & mask ) { bsent = 1; /* set to the configured button */ sendAButton(local, button-1, 1, rx, ry, rz, v3, v4, v5); } }
6. Go to the folder in the Terminal and type:
./configure
sudo make
7. Now you should have a wacom_drv.so in the /src/xdrv directory. Make a backup of your old wacom_drv.so:

sudo mv /usr/lib/xorg/modules/input/wacom_drv.so /usr/lib/xorg/modules/input/wacom_drv.so.bak
and copy the new one over:

cd src/xdrv
sudo cp wacom_drv.so /usr/lib/xorg/modules/input/wacom_drv.so
8. Edit your profile:
sudo nano /etc/profile

# enable buttons on HP TC4400
xsetwacom set stylus Button2 "3"
xsetwacom set stylus Button4 "core key shift F1"
xsetwacom set stylus Button5 "core key shift F2"
xsetwacom set stylus Button6 "core key shift F3"

9. Reboot.

10. Set the global keybindings and keybinding commands in the Configuration Editor /Apps /Metacity:
Global Keybindings:
run_command_1 F1
run_command_2
F2
run_command_3
F3

Keybinding Commands:
command_1 xournal
command_2 sh /usr/bin/rotate.sh
command_3 [onscreen keyboard - I don't use it yet]
------------
Thanks to Ubuntu Forum Community.