• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[gelöst] Event ignorieren?

Treito

Hacker
Hallo,

ich weiß nicht wohin mit meiner Frage, ich versuche es mal hier.
Also zum Problem: Ich habe 2 identische DVB-T-Sticks (Hauppauge Nova-T), beide haben einen Infrarot-Empfänger. Den einen habe ich mit Lirc konfiguriert, den 2. abgeklebt.
Das Problem ist aber, dass Linux ab und an die Sticks dann doch mal vertauscht.
Das 2. Problem: Der Empfänger, welcher nicht mit Lirc konfiguriert ist, arbeitet quasi als "Tastatur" und somit bekomme ich immer Doppelimpulse, wenn nicht ein Empfänger abgeklebt ist.
Wie überrede ich Linux und vor allem X dazu /dev/input/event5 vollkommen zu ignorieren?

Gruß,

Sven
 
OP
T

Treito

Hacker
Code:
Bus 003 Device 004: ID 2040:7070 Hauppauge Nova-T Stick 3
Device Descriptor:                                       
  bLength                18                              
  bDescriptorType         1                              
  bcdUSB               2.00                              
  bDeviceClass            0 (Defined at Interface level) 
  bDeviceSubClass         0                              
  bDeviceProtocol         0                              
  bMaxPacketSize0        64                              
  idVendor           0x2040 Hauppauge                    
  idProduct          0x7070 Nova-T Stick 3               
  bcdDevice            1.00                              
  iManufacturer           1 Hauppauge                    
  iProduct                2 Nova-T Stick                 
  iSerial                 3 4031084110                   
  bNumConfigurations      1                              
  Configuration Descriptor:                              
    bLength                 9                            
    bDescriptorType         2                            
    wTotalLength           46                            
    bNumInterfaces          1                            
    bConfigurationValue     1                            
    iConfiguration          0                            
    bmAttributes         0x80                            
      (Bus Powered)                                      
    MaxPower              500mA                          
    Interface Descriptor:                                
      bLength                 9                          
      bDescriptorType         4                          
      bInterfaceNumber        0                          
      bAlternateSetting       0                          
      bNumEndpoints           4                          
      bInterfaceClass       255 Vendor Specific Class    
      bInterfaceSubClass      0                          
      bInterfaceProtocol      0                          
      iInterface              0                          
      Endpoint Descriptor:                               
        bLength                 7                        
        bDescriptorType         5                        
        bEndpointAddress     0x01  EP 1 OUT              
        bmAttributes            2                        
          Transfer Type            Bulk                  
          Synch Type               None                  
          Usage Type               Data                  
        wMaxPacketSize     0x0200  1x 512 bytes          
        bInterval               1                        
      Endpoint Descriptor:                               
        bLength                 7                        
        bDescriptorType         5                        
        bEndpointAddress     0x81  EP 1 IN               
        bmAttributes            3                        
          Transfer Type            Interrupt             
          Synch Type               None                  
          Usage Type               Data                  
        wMaxPacketSize     0x0040  1x 64 bytes           
        bInterval              10                        
      Endpoint Descriptor:                               
        bLength                 7                        
        bDescriptorType         5                        
        bEndpointAddress     0x82  EP 2 IN               
        bmAttributes            2                        
          Transfer Type            Bulk                  
          Synch Type               None                  
          Usage Type               Data                  
        wMaxPacketSize     0x0200  1x 512 bytes          
        bInterval               1                        
      Endpoint Descriptor:                               
        bLength                 7                        
        bDescriptorType         5                        
        bEndpointAddress     0x83  EP 3 IN               
        bmAttributes            2                        
          Transfer Type            Bulk                  
          Synch Type               None                  
          Usage Type               Data                  
        wMaxPacketSize     0x0200  1x 512 bytes          
        bInterval               1                        
Device Qualifier (for other device speed):               
  bLength                10                              
  bDescriptorType         6                              
  bcdUSB               2.00                              
  bDeviceClass            0 (Defined at Interface level) 
  bDeviceSubClass         0                              
  bDeviceProtocol         0                              
  bMaxPacketSize0        64                              
  bNumConfigurations      1                              
Device Status:     0x0000                                
  (Bus Powered)

Code:
Bus 004 Device 002: ID 2040:7070 Hauppauge Nova-T Stick 3
Device Descriptor:                                       
  bLength                18                              
  bDescriptorType         1                              
  bcdUSB               2.00                              
  bDeviceClass            0 (Defined at Interface level) 
  bDeviceSubClass         0                              
  bDeviceProtocol         0                              
  bMaxPacketSize0        64                              
  idVendor           0x2040 Hauppauge                    
  idProduct          0x7070 Nova-T Stick 3               
  bcdDevice            1.00                              
  iManufacturer           1 Hauppauge                    
  iProduct                2 Nova-T Stick                 
  iSerial                 3 4031157610                   
  bNumConfigurations      1                              
  Configuration Descriptor:                              
    bLength                 9                            
    bDescriptorType         2                            
    wTotalLength           46                            
    bNumInterfaces          1                            
    bConfigurationValue     1                            
    iConfiguration          0                            
    bmAttributes         0x80                            
      (Bus Powered)                                      
    MaxPower              500mA                          
    Interface Descriptor:                                
      bLength                 9                          
      bDescriptorType         4                          
      bInterfaceNumber        0                          
      bAlternateSetting       0                          
      bNumEndpoints           4                          
      bInterfaceClass       255 Vendor Specific Class    
      bInterfaceSubClass      0                          
      bInterfaceProtocol      0                          
      iInterface              0                          
      Endpoint Descriptor:                               
        bLength                 7                        
        bDescriptorType         5                        
        bEndpointAddress     0x01  EP 1 OUT              
        bmAttributes            2                        
          Transfer Type            Bulk                  
          Synch Type               None                  
          Usage Type               Data                  
        wMaxPacketSize     0x0200  1x 512 bytes          
        bInterval               1                        
      Endpoint Descriptor:                               
        bLength                 7                        
        bDescriptorType         5                        
        bEndpointAddress     0x81  EP 1 IN               
        bmAttributes            3                        
          Transfer Type            Interrupt             
          Synch Type               None                  
          Usage Type               Data                  
        wMaxPacketSize     0x0040  1x 64 bytes           
        bInterval              10                        
      Endpoint Descriptor:                               
        bLength                 7                        
        bDescriptorType         5                        
        bEndpointAddress     0x82  EP 2 IN               
        bmAttributes            2                        
          Transfer Type            Bulk                  
          Synch Type               None                  
          Usage Type               Data                  
        wMaxPacketSize     0x0200  1x 512 bytes          
        bInterval               1                        
      Endpoint Descriptor:                               
        bLength                 7                        
        bDescriptorType         5                        
        bEndpointAddress     0x83  EP 3 IN               
        bmAttributes            2                        
          Transfer Type            Bulk                  
          Synch Type               None                  
          Usage Type               Data                  
        wMaxPacketSize     0x0200  1x 512 bytes          
        bInterval               1                        
Device Qualifier (for other device speed):               
  bLength                10                              
  bDescriptorType         6                              
  bcdUSB               2.00                              
  bDeviceClass            0 (Defined at Interface level) 
  bDeviceSubClass         0                              
  bDeviceProtocol         0                              
  bMaxPacketSize0        64                              
  bNumConfigurations      1                              
Device Status:     0x0000                                
  (Bus Powered)

Ich denke mal, es ist das einfachste, ein event ignorieren zu lassen, irgendwie, unter XP taucht das Problem nicht auf.
 
OP
T

Treito

Hacker
Okay hat sich erledigt. Ich habe im OpenSUSE-Wiki durch Zufall eine geniale Lösung gefunden: Beide Sticks werden als Empfänger eingebunden und somit muss ich nur einen "blind" machen, welchen von beiden ist egal.
 

Rainer Juhser

Moderator
Teammitglied
Kannst du das mal hier verlinken? Das könnte demnächst auch für mich interessant werden - und auch für alle anderen, die auf diesen Fred stoßen.
 
OP
T

Treito

Hacker
http://de.opensuse.org/Linux_Infrared_Remote_Control

Ganz unten gibt es dann den Abschnitt "Skript zum starten von LIRC bei HID Fernbedienungen"
 
OP
T

Treito

Hacker
Das kannte ich so auch noch nicht, aber genauso arbeitet das auch unter Windows.
Einziges Problem: Was macht man, wenn man zwei verschiedene Receiver hat. Hmm neee, das ist so genial, dann braucht man keinen von beiden abkleben.
Naja man lernt nie aus.
 
Oben