Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Manjaro (Linux) mousewheel zoom possible?
#1
Hallo,

I'm trying to set the mousewheel to zoom the image. In the window: configure input controller, main mouse wheel I added at the event ScrollUp and ScrollDown the actions: view-zoom-in and view-zoom-out.

Zooming is still not functioning. Also with ScrollUp(Ctrl) and ScrollDown(Ctrl) it doesn't function.

May be it depends on the Manjaro release? (Window Manager Tweaks?)

Can somebody help?

Manjaro XFCE 20.1, GIMP 2.10.20 (from repository)

Many Thanks.
Reply
#2
I think the plain mouse-wheel events are irremediably wired to scroll up/down the canvas. But AFAIK Ctrl-mousewheel is also irremediably wired to zoom in/out like in most other apps I use...

What are the current contents of the controllerrc file in your Gimp profile?
Reply
#3
(08-31-2020, 01:12 PM)Ofnuts Wrote: I think the plain mouse-wheel events are irremediably wired to scroll up/down the canvas. But AFAIK Ctrl-mousewheel is also irremediably wired to zoom in/out like in most other apps I use...

What are the current contents of  the controllerrc file in your Gimp profile?

Thanks for thinking. The file has the following content:
----------------------------------------------------------------------------

# GIMP controllerrc
#
# This file will be entirely rewritten each time you exit.

(GimpControllerInfo "Main Mouse Wheel"
    (icon-name "gimp-controller-wheel")
    (enabled yes)
    (debug-events no)
    (controller "GimpControllerWheel")
    (mapping
        (map "scroll-down-shift-primary" "tools-aspect-decrease")
        (map "scroll-down" "view-zoom-out")
        (map "scroll-up-shift-alt" "tools-angle-increase")
        (map "scroll-down-shift-primary-alt" "tools-spacing-decrease")
        (map "scroll-down-shift-alt" "tools-angle-decrease")
        (map "scroll-down-primary-alt" "tools-size-decrease")
        (map "scroll-up-shift-primary-alt" "tools-spacing-increase")
        (map "scroll-down-alt" "tools-opacity-decrease")
        (map "scroll-up-primary-alt" "tools-size-increase")
        (map "scroll-up-shift-primary" "tools-aspect-increase")
        (map "scroll-up" "view-zoom-in")
        (map "scroll-up-alt" "tools-opacity-increase")))
(GimpControllerInfo "Main Keyboard"
    (icon-name "gimp-controller-keyboard")
    (enabled yes)
    (debug-events no)
    (controller "GimpControllerKeyboard")
    (mapping
        (map "cursor-right-alt" "tools-size-increase")
        (map "cursor-left-shift" "view-scroll-page-left")
        (map "cursor-right-shift" "view-scroll-page-right")
        (map "cursor-up-shift" "view-scroll-page-up")
        (map "cursor-up-primary" "view-scroll-top-border")
        (map "cursor-down-primary" "view-scroll-bottom-border")
        (map "cursor-up-alt" "tools-size-increase-skip")
        (map "cursor-left-alt" "tools-size-decrease")
        (map "cursor-down-shift" "view-scroll-page-down")
        (map "cursor-right-primary" "view-scroll-right-border")
        (map "cursor-left-primary" "view-scroll-left-border")
        (map "cursor-down-alt" "tools-size-decrease-skip")))

# end of controllerrc

---------------------------------------------------------------------------------------------
Reply
#4
In the "Main mouse wheel" section, if you change (debug-events no) into (debug-events yes), and then start Gimp in a terminal, you should have an inking of what is going on:

Code:
Received 'Mouse Wheel Events' (class 'Mouse Wheel')
   controller event 'scroll-down-control (Scroll Down (Ctrl))'
   (trigger event)
   doesn't map to action

Received 'Mouse Wheel Events' (class 'Mouse Wheel')
   controller event 'scroll-up-shift-control (Scroll Up (Shift+Ctrl))'
   (trigger event)
   maps to action 'tools-paint-brush-size-increase-skip'
   action was found

Received 'Mouse Wheel Events' (class 'Mouse Wheel')
   controller event 'scroll-down-shift-control (Scroll Down (Shift+Ctrl))'
   (trigger event)
   maps to action 'tools-paint-brush-size-decrease-skip'
   action was found

Received 'Mouse Wheel Events' (class 'Mouse Wheel')
   controller event 'scroll-down-shift-control (Scroll Down (Shift+Ctrl))'
   (trigger event)
   maps to action 'tools-paint-brush-size-decrease-skip'
   action was found

Received 'Mouse Wheel Events' (class 'Mouse Wheel')
   controller event 'scroll-down-shift-control (Scroll Down (Shift+Ctrl))'
   (trigger event)
   maps to action 'tools-paint-brush-size-decrease-skip'
   action was found
Above is for my settings of course, your output would be different.
Reply
#5
It may be something with Manjaro, because it definitely works for me in Mint 19


.zip   controllerrc.zip (Size: 622 bytes / Downloads: 315)

Maybe backup your file and replacing mine just as a test.  It certainly works for me
   

It is one of the first things I make sure works.  I love the zoom/scroll like Krita.
Reply
#6
(09-01-2020, 10:17 AM)Ofnuts Wrote: In the "Main mouse wheel" section, if you change (debug-events no) into (debug-events yes), and then start Gimp in a terminal, you should have an inking of what is going on:

Code:
Received 'Mouse Wheel Events' (class 'Mouse Wheel')
   controller event 'scroll-down-control (Scroll Down (Ctrl))'
   (trigger event)
   doesn't map to action

Received 'Mouse Wheel Events' (class 'Mouse Wheel')
   controller event 'scroll-up-shift-control (Scroll Up (Shift+Ctrl))'
   (trigger event)
   maps to action 'tools-paint-brush-size-increase-skip'
   action was found

Received 'Mouse Wheel Events' (class 'Mouse Wheel')
   controller event 'scroll-down-shift-control (Scroll Down (Shift+Ctrl))'
   (trigger event)
   maps to action 'tools-paint-brush-size-decrease-skip'
   action was found

Received 'Mouse Wheel Events' (class 'Mouse Wheel')
   controller event 'scroll-down-shift-control (Scroll Down (Shift+Ctrl))'
   (trigger event)
   maps to action 'tools-paint-brush-size-decrease-skip'
   action was found

Received 'Mouse Wheel Events' (class 'Mouse Wheel')
   controller event 'scroll-down-shift-control (Scroll Down (Shift+Ctrl))'
   (trigger event)
   maps to action 'tools-paint-brush-size-decrease-skip'
   action was found
Above is for my settings of course, your output would be different.

I followed your advice. I don't see any events. It seems just as if the mouse is not there.

BTW  I saw that none of the functions attached to the mousewheel  are working.

(09-01-2020, 11:09 AM)mholder Wrote: It may be something with Manjaro, because it definitely works for me in Mint 19



Maybe backup your file and replacing mine just as a test.  It certainly works for me


It is one of the first things I make sure works.  I love the zoom/scroll like Krita.

I compared the text in the file and they look very comparable. Nonetheless I copied your file in the .config/GIMP/ dir. Start GIMP and again nothing works.

(see above: the other functions of the mousewheel also don't work)
Reply
#7
Does your mousewheel work ok with XEV? Btw, what make/model is your mouse? Some are funky devices that only work properly with a driver (wmuch of course only exists for Windows).
Reply
#8
(09-01-2020, 01:50 PM)Ofnuts Wrote: Does your mousewheel work ok with XEV? Btw, what make/model is your mouse? Some are funky devices that only work properly with a driver (wmuch of course only exists for Windows).

Its a Logitech wireless mouse: M310, I had never problems before.
Output of mhwd (hardware detection Manjaro):

10: USB 00.2: 0000 Unclassified device
  SysFS ID: /devices/pci0000:00/0000:00:01.3/0000:03:00.0/usb1/1-12/1-12:1.2
  SysFS BusID: 1-12:1.2
  Hardware Class: unknown
  Model: "Logitech Unifying Receiver"
  Hotplug: USB
  Vendor: usb 0x046d "Logitech, Inc."
  Device: usb 0xc52b "Unifying Receiver"
  Revision: "12.11"
  Driver: "usbhid"
  Driver Modules: "usbhid"
  Speed: 12 Mbps
  Module Alias: "usb:v046DpC52Bd1211dc00dsc00dp00ic03isc00ip00in02"
  Driver Info #0:
    Driver Status: usbhid is active
    Driver Activation Cmd: "modprobe usbhid"
  Attached to: #12 (Hub)


On xev everything seems OK: clear actions when I roll the wheel up or Down:

ButtonPress event, serial 37, synthetic NO, window 0x5a00001,
    root 0x1d6, subw 0x0, time 7233212, (97,112), rootSad1288,733),
    state 0x10, button 5, same_screen YES

ButtonRelease event, serial 37, synthetic NO, window 0x5a00001,
    root 0x1d6, subw 0x0, time 7233212, (97,112), rootSad1288,733),
    state 0x1010, button 5, same_screen YES
Reply


Forum Jump: