LINUX.ORG.RU

Сообщения iZ01at0r

 

lsinput. Несколько event'ов на одно устройство. Определить необходимое.

Форум — Linux-hardware

Для перехвата нажатий с определённой клавиатуры с помощью actkbd необходимо указывать устройство ввода. Проблема следующая - на одну клавиатуру имеется несколько /dev/input/event* и, чтобы определить нужный event - с которым будет работать всё, что задумано - приходится вручную перебирать до тех пор пока не заработает. Почему event'ов несколько? И как-то можно это победить без перебора?

lsinput

/dev/input/event4
   bustype : BUS_USB
   vendor  : 0x8089
   product : 0x3
   version : 272
   name    : "BlackC Sayobot.cn SayoDevice 9K"
   phys    : "usb-0000:01:00.0-1.4.2/input0"
   uniq    : "00715884EABA"
   bits ev : (null) (null)

/dev/input/event5
   bustype : BUS_USB
   vendor  : 0x8089
   product : 0x3
   version : 272
   name    : "BlackC Sayobot.cn SayoDevice 9K "
   phys    : "usb-0000:01:00.0-1.4.2/input0"
   uniq    : "00715884EABA"
   bits ev : (null) (null) (null) (null) (null)

/dev/input/event6
   bustype : BUS_USB
   vendor  : 0x8089
   product : 0x3
   version : 272
   name    : "BlackC Sayobot.cn SayoDevice 9K "
   phys    : "usb-0000:01:00.0-1.4.2/input0"
   uniq    : "00715884EABA"
   bits ev : (null) (null) (null) (null)

/dev/input/event7
   bustype : BUS_USB
   vendor  : 0x8089
   product : 0x3
   version : 272
   name    : "BlackC Sayobot.cn SayoDevice 9K "
   phys    : "usb-0000:01:00.0-1.4.2/input0"
   uniq    : "00715884EABA"
   bits ev : (null) (null) (null) (null) (null)

 , ,

iZ01at0r
()

USB колонка и появление звука при уровне громкости от 90%

Форум — Multimedia

Маленькая USB-колонка IKANOO. Нет звука при уровне громкости до 90%. Можно это как-то полечить? В Windows’ах работает как надо.

Bus 002 Device 015: ID 0000:0201 MVSILICON.INC. MV USB AUDIO
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0000 
  idProduct          0x0201 
  bcdDevice            0.10
  iManufacturer           1 
  iProduct                2 
  iSerial                 3 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0087
    bNumInterfaces          3
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      1 Control Device
      bInterfaceProtocol      0 
      iInterface              0 
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      1 (HEADER)
        bcdADC               1.00
        wTotalLength       0x0028
        bInCollection           1
        baInterfaceNr(0)        1
      AudioControl Interface Descriptor:
        bLength                12
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             1
        wTerminalType      0x0101 USB Streaming
        bAssocTerminal          0
        bNrChannels             2
        wChannelConfig     0x0003
          Left Front (L)
          Right Front (R)
        iChannelNames           0 
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                10
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                 9
        bSourceID               1
        bControlSize            1
        bmaControls(0)       0x01
          Mute Control
        bmaControls(1)       0x02
          Volume Control
        bmaControls(2)       0x02
          Volume Control
        iFeature                0 
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID             3
        wTerminalType      0x0301 Speaker
        bAssocTerminal          0
        bSourceID               9
        iTerminal               0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           1
        bDelay                  1 frames
        wFormatTag         0x0001 PCM
      AudioStreaming Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             2
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        44100
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            9
          Transfer Type            Isochronous
          Synch Type               Adaptive
          Usage Type               Data
        wMaxPacketSize     0x00c0  1x 192 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioStreaming Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         0 Undefined
          wLockDelay         0x0000
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               2.01
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      33
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               1

Также в данный момент подключена ещё одна USB-звуковая карта, которая работает корректно.

 , ,

iZ01at0r
()

Яндекс.Диск на arm64

Форум — General

Существует ли в природе данный пакет? На оф. сайте только i386 и amd64.

 ,

iZ01at0r
()

МФУ Canon и драйвера от производителя

Форум — Linux-hardware

На малинке установлен Raspbian. Думал по-быстрому принт-сервер замучУ. Скачал пакет драйверов на linux от производителя. Пытаюсь установить - запускаю скрипт - несколько основных пакетов не устанавливается. Нет подходящей архитектуры. Требуется armhf. В имеющемся самое близкое - это arm64. Как быть? armhf совместим с arm64? Может можно перепаковать deb-пакет?

 , , , ,

iZ01at0r
()

udev и вложенное выражение (атрибут RUN)

Форум — General

Можно ли как-нибудь выполнить последовательность команд (атрибут RUN) не вынося в отдельный скрипт?

/etc/udev/rules.d/10-automount.rules

В чём проблема - вложенная последовательность команд не выполняется.

`/bin/lsblk /dev/%k -dnro FSTYPE`

Не выполняется также если напечатать так:

$(/bin/lsblk /dev/%k -dnro FSTYPE)

Само правило udev:

ACTION=="add" KERNEL=="sd[a-z][0-9]" RUN+="/bin/mkdir -p /media/%k" RUN+="/bin/mount -t `/bin/lsblk /dev/%k -dnro FSTYPE` /dev/%k /media/%k"

 , ,

iZ01at0r
()

RSS подписка на новые темы