Shop Mobile More Submit  Join Login
About Digital Art / Hobbyist Member RyivhnnAustralia Recent Activity
Deviant for 10 Years
Needs Premium Membership
Statistics 129 Deviations 7,834 Comments 14,129 Pageviews

Newest Deviations

Random Favourites

deviation in storage by pupasoul
deviation in storage by pupasoul
deviation in storage by inanna-nakano

deviantID

Ryivhnn

Artist | Hobbyist | Digital Art
Australia
3d muddler. Shaolin webmonkey. Creator of AEfter Ragnarok.
Interests

Activity


  • Mood: Tired
  • Listening to: Eskimo Joe: Just Don't Feel
  • Eating: choc chip muesli bar
Truncated the title because it didn't fit.  Art related in the sense that it might help Linux using artists.  From the blog as per usual.

And on goes the love/hate relationship with Linux.  Setting up my Cintiq is one of the things that makes me really loathe it and want to go jumping back onto my iMac and ignore the possibility of art on Linux forever.  My first attempt was an abysmal fail (I blew up Unity and had to spend a bit of time fixing it and it never completely recovered, and due to the nature of the child who owned that particular machine it ended up with Win7 on it).  If I didn't need a Linux server for web dev (which is why I got the laptop) I would have just bought a MacBook.

Don't care about the rambling documentation? No worries, just copy/paste the script.  You may need to change some button assignments for your setup.

This is probably not necessary but first I grabbed latest Nvidia drivers.

sudo add-apt-repository ppa: xorg-edgers/ppa -y # take out the space after the ppa: had to add that in to stop dA's emote converter
sudo apt-get update
sudo apt-get install nvidia-340

340 was the latest at the time of writing. Not sure if I could have got it with nvidia-current and didn't think to try at the time.

Reboot (I had to use the terminal because Ubuntu decided it needed to do some other updates directly before I installed the nvidia drivers and after I installed the nvidia drivers Cinnamon went a ittle glitchy on me but went back to normal (as far as I can tell) after reboot.

In Terminal type: xrandr

Which should output something like:

Screen 0: minimum 8 x 8, current 3200 x 2600, maximum 32767 x 32767
eDP1 connected primary 3200x1800+0+0 (normal left inverted right x axis y axis) 293mm x 165mm
   3200x1800      60.0*+   48.0 
   2048x1536      60.0 
   1920x1440      60.0 
   1856x1392      60.0 
   1792x1344      60.0 
   1920x1200      60.0 
   1920x1080      59.9 
   1600x1200      60.0 
   1680x1050      60.0     59.9 
   1600x1024      60.2 
   1400x1050      60.0 
   1280x1024      60.0 
   1440x900       59.9 
   1280x960       60.0 
   1360x768       59.8     60.0 
   1152x864       60.0 
   1024x768       60.0 
   800x600        60.3     56.2 
   640x480        59.9 
DP1 connected 1280x800+851+1800 (normal left inverted right x axis y axis) 261mm x 163mm
   1280x800       59.8*+
   1024x768       75.1     70.1     60.0 
   832x624        74.6 
   800x600        72.2     75.0     60.3 
   640x480        75.0     60.0 
   720x400        70.1 
HDMI1 disconnected (normal left inverted right x axis y axis)
VGA1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

In my case here eDP1 is the laptop screen and DP1 is the Cintiq. To see what the attached Wacom devices are called do:

xsetwacom --list devices

The Cintiq is the only Wacom device I have attached to the laptop and the output was:

Wacom Cintiq 12WX stylus        id: 11 type: STYLUS   
Wacom Cintiq 12WX eraser        id: 15 type: ERASER   
Wacom Cintiq 12WX pad           id: 16 type: PAD

Now we need a bash script (so the whole bloody thing wouldn't have to be rethingied because I had the audacity to hotplug the Cintiq or log out or reboot etc).

So we fire up gedit (or whatever text editor of choice) and shove this in:

xsetwacom set "Wacom Cintiq 12WX stylus" MapToOutput DP1
xsetwacom set "Wacom Cintiq 12WX eraser" MapToOutput DP1

And that's basic setup done. The pen now maps properly on the Cintiq screen and can be calibrated with the GUI tools.

I tried to switch right click and middle click on my side switch (by default the lower switch is middle click and the upper switch is right click, I like that the other way round) in the GUI but despite changing all available pens the settings wouldn't take for some reason. A quick trawl around the internet seemed to suggest that the mouse clicks were simply numbered 1-3, where 1 was left click, 2 was middle click and 3 for right click. I did xsetwacom set "Wacom Cintiq 12WX pad" Button N "key N" where N is a number to find out which button was which (nib is 1, lower switch is 2, higher switch is 3). So to get the stylus the way I wanted:

xsetwacom set "Wacom Cintiq 12WX stylus" Button 2 3
xsetwacom set "Wacom Cintiq 12WX stylus" Button 3 2

I prefer having contact rather than hovering when I'm doing anything so the default behaviour (where if you right click you can hover over the tablet while doing whatever) was doing my head in a bit (not that that was hard by this point). After reading this thread (link is external) I knew which parameter I needed to hack modify this time:

xsetwacom set "Wacom Cintiq 12WX stylus" TabletPCButton on

Much more betterer for bek! (It's the little things :))

The expresskeys turned out to be a little bit strange as the buttons were not mapped how I expected.  There are 10 expresskeys, 5 on each side, and I expected 1-5 to be on the left adn 6-10 to be on the right.  What actually happened after I did the above trick to find out which button was which was this:

LEFT SIDE
Top horizontal button: Button 13
Long vertical button: Button 3
Short top vertical button: Button 1
Short bottom vertical button: Button 2
Bottom horizontal button: Button 8

RIGHT SIDE
Top horizontal button: Button 14
Short top vertical button: Button 9
Short bottom vertical button: Button 0 (I meant 10 but used 0)
Long vertical button: Button 11
Bottom horizontal button: Button 12

WTF mate.

To find the supported modifiers you can do: xsetwacom --list modifiers

which returns something like:

20 modifiers are supported:
ctrl
ctl
control
lctrl
rctrl
meta
lmeta
rmeta
alt
lalt
ralt
shift
lshift
rshift
super
lsuper
rsuper
hyper
lhyper
rhyper

81 specialkeys are supported:
f1
f2
f3
f4
f5
f6
f7
f8
f9
f10
f11
f12
f13
f14
f15
f16
f17
f18
f19
f20
f21
f22
f23
f24
f25
f26
f27
f28
f29
f30
f31
f32
f33
f34
f35
esc
Esc
up
down
left
right
backspace
Backspace
tab
PgUp
PgDn
del
home
end
`
-
=
[
]
\
;
'
,
.
/
~
!
@
#
$
%
^
&
*
(
)
_
+
{
}
|
:
"
<
>
?

I generally use modifers on the right side, save, undo/redo and move through layers on the left side, though the move layer keys seem to be different depending on the app so I tend to set them at that level. I also use the right rouch strip for zoom and the left touch strip for brush size.

xsetwacom set "Wacom Cintiq 12WX pad" Button 3 "key shift"
xsetwacom set "Wacom Cintiq 12WX pad" Button 1 "key ctrl"
xsetwacom set "Wacom Cintiq 12WX pad" Button 2 "key alt"
xsetwacom set "Wacom Cintiq 12WX pad" Button 8 "key +tab"

xsetwacom set "Wacom Cintiq 12WX pad" Button 14 "key +ctrl" "key +s"
xsetwacom set "Wacom Cintiq 12WX pad" Button 9 "key +ctrl" "key +z"
xsetwacom set "Wacom Cintiq 12WX pad" Button 10 "key +shift" "key +ctrl" "key +z"

xsetwacom set "Wacom Cintiq 12WX pad" StripRightUp "key ["
xsetwacom set "Wacom Cintiq 12WX pad" StripRightDown "key ]"

I have no idea why some needed the + and others didn't or didn't work with the +.

The unassigned button on the top left is usually my switch screen button but I haven't figured out how to do that one yet.

Save the script (I named mine wacom-settings.sh coz I'm so imaginative). Go into wherever you saved it, select the script, press ctrl+I (or right click and go properties if that feels too Mac for you), go to the Permissions tab and check the box that says "Allow executing file as program", then sudo mv ~/wacom-settings.sh /usr/local/bin/wacom-settings.sh. After that go to System Settings --> Startup Applications and add the script to the Startup items.

Want the whole shebang? Here's a thing to copy/paste, though the DP1 part and the expresskey assignments may need to be changed for your setup.

#!/bin/bash

# maps the stylus and eraser to the Cintiq screen
xsetwacom set "Wacom Cintiq 12WX stylus" MapToOutput DP1
xsetwacom set "Wacom Cintiq 12WX eraser" MapToOutput DP1

# setting right and middle click the way I want
xsetwacom set "Wacom Cintiq 12WX stylus" Button 2 3
xsetwacom set "Wacom Cintiq 12WX stylus" Button 3 2

# require nib touch for right and middle click
xsetwacom set "Wacom Cintiq 12WX stylus" TabletPCButton on

# setting modifier keys
xsetwacom set "Wacom Cintiq 12WX pad" Button 3 "key shift"
xsetwacom set "Wacom Cintiq 12WX pad" Button 1 "key ctrl"
xsetwacom set "Wacom Cintiq 12WX pad" Button 2 "key alt"
xsetwacom set "Wacom Cintiq 12WX pad" Button 8 "key +tab"

xsetwacom set "Wacom Cintiq 12WX pad" Button 14 "key +ctrl" "key +s"
xsetwacom set "Wacom Cintiq 12WX pad" Button 9 "key +ctrl" "key +z"
xsetwacom set "Wacom Cintiq 12WX pad" Button 10 "key +shift" "key +ctrl" "key +z"

xsetwacom set "Wacom Cintiq 12WX pad" StripRightUp "key ["
xsetwacom set "Wacom Cintiq 12WX pad" StripRightDown "key ]"

References

  • Mood: Zest
  • Listening to: The Piano Guys: Bittersweet

Base modedl frowning

At 8yo's request: "Make him frown!" (all the bases are gender neutral)

Base looking slightly puzzled

Seeing something mildly disturbing

Base surprised

Shock horror! I could have opened its mouth more but I was too lazy to go back to object mode to show the rig layer to be able to grab the jaw controller

Base smiling

How I feel right now

There's a few shape keys and going to be a hell of a lot more once I do the phonemes.  Kind of wish I could get the drivers working just so I don't have to go trawling through the shape keys.  After that or when I need a break from shape keying I'll see if I can get controllers for the hands and feet.  Feet shouldn't be too much of a problem, I actually started on a foot rig before I abandoned it in favour of just manipulating the bones themselves like I was doing with the hands.  I may end up doing that anyway but if I have controllers I can then hide the armatures without having to hide everything but the hand and foot bones.

AdCast - Ads from the Community

×

Comments


Add a Comment:
 
:iconyannickdellapina:
YannickDellapina Featured By Owner Nov 12, 2014
:iconthankyouscript1::iconthankyouscript2::iconthankyouscript3::iconfavoriteplz:
Reply
:iconryivhnn:
Ryivhnn Featured By Owner Nov 12, 2014  Hobbyist Digital Artist
You are very welcome and that's the flashiest thanks I've seen to date XD
Reply
:iconkopfwiesieb:
kopfwiesieb Featured By Owner Nov 10, 2014
Thank you very much for the :+devwatch:. I really appreciate it.
Reply
:iconryivhnn:
Ryivhnn Featured By Owner Nov 10, 2014  Hobbyist Digital Artist
It was my pleasure.  Thank you for sharing your photos :)
Reply
:iconmarleepup:
Marleepup Featured By Owner Sep 6, 2014  Student
Thank you so much for the favorites! Your support means a lot <3
Reply
:iconryivhnn:
Ryivhnn Featured By Owner Sep 6, 2014  Hobbyist Digital Artist
^_^
Reply
:iconlance66:
Lance66 Featured By Owner Aug 16, 2014  Student Digital Artist
Hi Ryivhnn, I will not be round for a while because I have gone and broken my back at the T6 , so it is hellish pain to try and do anything on the puter.
am waiting to hear what neuro and ortho surgeons are gonna do with me, but in the meantime I have to saty off the puter as this aggravates the problem and causes so much pain.
will catch up when i am recovered from this.
later, Lance :)
Reply
:iconryivhnn:
Ryivhnn Featured By Owner Aug 17, 2014  Hobbyist Digital Artist
Yeesh how in the hell did you manage that? Yeh stay off the computer and tell me when you're right to come back or have managed to set up a rig to be able to use the computer without massive pain! Make a full recovery soon! :)
Reply
:iconlance66:
Lance66 Featured By Owner Oct 23, 2014  Student Digital Artist
It is a compression fracture of T6 superior endplate. Painful as all hell.
I have osteoporosis because of long term use of chemo drugs and steroids, unfortunate side effect.
Managed to make a pic today for first time in ages.
feeling a bit happier, the computer is still real hard going for me though, so you may not see me for a while after this, will be recovering.
Reply
:iconryivhnn:
Ryivhnn Featured By Owner Oct 23, 2014  Hobbyist Digital Artist
Oh ow :( I'd offer a hug but I'm scared of breaking you! :) I'm glad you managed a pic, sounds like you're going to need to rethingi your work area so that you can work comfortably.  Lazyboy chair and monitors on adjustable arms! :D And maybe use a tablet for when you're not posting things :)
Reply
(1 Reply)
Add a Comment: