Menu

Problems with Powermate on Ubuntu without X11

Help
Manuel
2008-02-02
2013-04-23
  • Manuel

    Manuel - 2008-02-02

    Hello,
    I installed gizmod with apt-get install on an Ubuntu 7.10. It is an Ubuntu without X11 from the alternate CD. I can start gizmod and in the debug mode and I can see the events from the Griffin Powermate. But only the visualitazion script works. I want to use the PowermateDefault script for the volume. Does I need an X11 environment? Or does I have to modify anything because I don' have X11 installed?
    On my laptop with X11 the Powermate works fine without any modifications. Just installing and using.
    Thanks for answers.
    Manuel

     
    • Tim Burrell

      Tim Burrell - 2008-02-02

      Hi Manuel,

      Gizmod is designed to work both with and without X, so that shouldn't be the issue, however you'll be missing some gizmod features, like the ability to perform different actions based on what program is currently running, etc.

      So first of all, can you paste the output of running "gizmod -g"?  I need to see the startup messages.  By first thoughts are this: gizmod isn't detecting a keyboard and mouse, or it's not connecting to the right sound card mixer.  If you want to run without a keyboard and mouse it can still be done but I'll wait to hear back from you before going down that road.

      Thanks,

      Tim.

       
    • Manuel

      Manuel - 2008-02-02

      Hi
      Here is the output of running "gizmod -g". The last 9 lines are events rotating the Powermate.
      Yes I have no keyboard and mouse connected. I want to build an mp3 player pc with the music player daemon without a screen, mouse and keyboard. And the volume shoud be controlled with the Powermate.

      GizmoDaemon v3:4 -=- (c) 2007, Tim Burrell <tim.burrell@gmail.com>
      -----------
      Debug Mode Enabled

      Registering Devices:

          Standard - Directory [/dev/input]
             Mouse - Macintosh mouse button emulation [/dev/input/event0]
          Standard - PC Speaker [/dev/input/event1]
         Powermate - Griffin PowerMate [/dev/input/event2]
      Powermate Rotate Sensitivity set to 1 Ticks per Generated Event
          Standard - Power Button (FF) [/dev/input/event3]
          Standard - Power Button (CM) [/dev/input/event4]
      LIRC device node [/dev/lircd] does not exist -- disabling LIRC support

      Loading User Scripts:

               CatchAllDebug - CatchAll Event Mapping for Testing
                        Test - Default Powermate Event Mapping
               PowermateTest - Default Powermate Event Mapping
         PowermateVisualizer - Powermate Visualization Handler [1 Powermates]

      Unable to Open X11 Display [Default] -- Per application mappings will not work!
      Attached to Sound Card [hw:0] -- VIA 8237
      onEvent: SoundCard -- SoundCardAttach [VIA 8237]
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <Master Mono>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Master Mono> Unmute
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Master Mono> Vol: 0.0
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <Master>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Master> Unmute
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Master> Vol: 0.0
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Master> Vol: 83.8709640503
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <PCM>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <PCM> Unmute
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <PCM> Vol: 0.0
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <PCM> Vol: 74.1935501099
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <Surround Jack Mode>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Surround Jack Mode>
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <Surround>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Surround>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Surround> Vol: 0.0
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <Center>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Center>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Center> Vol: 0.0
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <LFE>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <LFE>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <LFE> Vol: 0.0
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <Line>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Line>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Line> Vol: 0.0
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Line>
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <CD>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <CD> Unmute
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <CD> Vol: 0.0
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <CD> Vol: 80.6451644897
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <Mic Boost (+20dB)>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Mic Boost (+20dB)>
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <Mic Select>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Mic Select>
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <Mic>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Mic>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Mic> Vol: 0.0
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <Phone>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Phone>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Phone> Vol: 0.0
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <PC Speaker>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <PC Speaker>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <PC Speaker> Vol: 0.0
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <Aux>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Aux>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Aux> Vol: 0.0
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Aux>
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <Mono Output Select>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Mono Output Select>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Mic>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Mic>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <CD>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <CD>
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <Video>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Video>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Aux>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Aux>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Line>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Line>
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <Mix>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Mix>
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <Mix Mono>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Mix Mono>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Phone>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Phone>
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <Capture>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Capture>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Capture>
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <IEC958 Playback AC97-SPSA>
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <IEC958 Playback Source>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <IEC958 Playback Source>
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <IEC958>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <IEC958>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <IEC958>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <IEC958>
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <IEC958 Output>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <IEC958 Output>
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <Channel Mode>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Channel Mode>
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <Duplicate Front>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Duplicate Front>
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <External Amplifier>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <External Amplifier> Unmute
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <Input Source Select>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Input Source Select>
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <Input Source Select 1>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <Input Source Select 1>
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <VIA DXS>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <VIA DXS> Vol: 80.6451644897
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <VIA DXS 1>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <VIA DXS 1> Vol: 80.6451644897
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <VIA DXS 2>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <VIA DXS 2> Vol: 80.6451644897
      onEvent: SoundCard -- MixerElementAttach [VIA 8237] <VIA DXS 3>
      onEvent: SoundCard -- MixerElementChange [VIA 8237] <VIA DXS 3> Vol: 80.6451644897
      onEvent: Powermate -- /dev/input/event2 | [EV_REL] c: 0x7 Val: 0x1
      onEvent: Powermate -- /dev/input/event2 | [EV_REL] c: 0x7 Val: 0x1
      onEvent: Powermate -- /dev/input/event2 | [EV_REL] c: 0x7 Val: 0x1
      onEvent: Powermate -- /dev/input/event2 | [EV_REL] c: 0x7 Val: 0x1
      onEvent: Powermate -- /dev/input/event2 | [EV_REL] c: 0x7 Val: -0x1
      onEvent: Powermate -- /dev/input/event2 | [EV_REL] c: 0x7 Val: -0x1
      onEvent: Powermate -- /dev/input/event2 | [EV_REL] c: 0x7 Val: -0x1
      onEvent: Powermate -- /dev/input/event2 | [EV_REL] c: 0x7 Val: -0x1
      onEvent: Powermate -- /dev/input/event2 | [EV_REL] c: 0x7 Val: -0x1

       
    • Manuel

      Manuel - 2008-02-02

      I connected a keyboard and a mouse to the pc and it works.
      Now what shall I do that it works without a mouse and keyboard?

       
      • Tim Burrell

        Tim Burrell - 2008-02-02

        You don't need to create mouse or keyboard events do you?  You're just using the powermate to control volume correct?

        In that case no problem:

        Edit modules.d/scripts/GizmoScriptDefault.py

        Locate line 60

        Change the line that says:

        if Event.Class in self.InterestedClasses and len(Gizmod.Mice) and len(Gizmod.Keyboards):

        to:

        if Event.Class in self.InterestedClasses:

        And it should work!

        Lemme know how it goes,

        Tim.

         
    • Manuel

      Manuel - 2008-02-02

      Thats works great.
      Thanks a lot.
      Manuel

       
      • Tim Burrell

        Tim Burrell - 2008-02-02

        Excellent, great to hear!

         

Log in to post a comment.