Cant open device on raspberry pi 3b+ with hidapi hidtest - linux

pi#led-panel:~/hidapi/hidtest $ sudo ./test hidapi test/example tool.
Compiled with hidapi version 0.13.0, runtime version 0.13.0.
Compile-time version matches runtime version of hidapi. Device Found
type: 17ef 6019 path: 1-1.1.3:1.0 serial_number: (null)
Manufacturer: Logitech Product: Lenovo USB Optical Mouse
Release: 7200 Interface: 0 Usage (page): 0x0 (0x0) Bus
type: 1 unable to open device pi#led-panel:~/hidapi/hidtest $
i have only a usb mouse connected on 64 bit raspbian
please help

Related

ttyACM0 does not exist in jetson racecar TX2

I have a jetson racecar tx2 and this is its details:
NVIDIA Jetson TX2
L4T 32.2.1 [ JetPack 4.2.2 ]
Ubuntu 18.04.2 LTS
Kernel Version: 4.9.140-tegra
CUDA 10.0.326
CUDA Architecture: 6.2
OpenCV version: 3.4.0
OpenCV Cuda: YES
CUDNN: 7.5.0.56
TensorRT: 5.1.6.1
Vision Works: 1.6.0.500n
VPI: NOT_INSTALLED
Vulcan: 1.1.70
When is try to start teleport it gives me this error message:
Device not found: IMU or VESC not found -> /dev/ttyACM1 /dev/ttyACM0
I checked out ttyACM0 it doesnot exists I tried to installed ttyACM modules but it gives that module and kernel versions are different.
the usb list as shown in figure:USB List
anyone can help me please?

audacity recording monitor sound plus microphone

i would like to record my monitor-sound (e.g. musicplayer) and microphone with audacity 2.4.2 under pop!_OS 21.04. i am using the u-phoria umc202hd (i use the third soundcard U192k).
do you know a way to record monitor sound and microphone with audacity simultaneously on linux?
❯ uname -a
Linux vl 5.13.0-7620-generic #20~1634827117~21.04~874b071-Ubuntu SMP Fri Oct 29 15:06:55 UTC x86_64 x86_64 x86_64 GNU/Linux
❯ sudo apt install pulseaudio alsa-base alsa-utils pavucontrol -y
❯ cat /proc/asound/cards
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0x8d118000 irq 139
1 [Dock ]: USB-Audio - USB-C Triple-4K Dock
DisplayLink USB-C Triple-4K Dock at usb-0000:00:14.0-2.1, super speed
2 [C525 ]: USB-Audio - HD Webcam C525
HD Webcam C525 at usb-0000:00:14.0-2.4.2, high speed
3 [U192k ]: USB-Audio - UMC202HD 192k
BEHRINGER UMC202HD 192k at usb-0000:00:14.0-2.4.4, high speed
That is two separate operations. In Linux, it is possible to use loopback recording to get a copy of what is currently going out the speakers. Start looking here:
https://wiki.ubuntu.com/record_system_sound

Vulkan 1.1 APIs missing from device - Android Studio Emulator

On Manjaro Linux.
Running Android Studio 3.6.3. Everything works great, but when I try to launch any emulator I am getting this error:
Emulator: createOrGetGlobalVkEmulation: Warning: Vulkan 1.1 APIs missing from device
I'm not having any driver issues outside of trying to use the Android Studio Emulator.
Studio SDK's installed:
Vulkan driver's installed:
I have Radeon's Vulkan mesa driver installed in manjaro. I also have virtualization enabled for processor in BIOS.
Manjaro Information:
System: Host: command Kernel: 5.4.40-1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.3.0
CPU: Topology: 8-Core model: AMD Ryzen 7 2700X bits: 64 type: MT MCP arch: Zen+ rev: 2 L2 cache: 4096 KiB
Graphics: Device-1: Advanced Micro Devices [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
vendor: Micro-Star MSI driver: amdgpu v: kernel bus ID: 0a:00.0
Display: x11 server: X.org 1.20.8 driver: amdgpu resolution: <xdpyinfo missing>
OpenGL: renderer: Radeon RX 580 Series (POLARIS10 DRM 3.35.0 5.4.40-1-MANJARO LLVM 10.0.0) v: 4.6 Mesa 20.0.6
direct render: Yes
You can work around it as indicated here https://stackoverflow.com/a/59715169/1796802 :
Create the file ~/.android/advancedFeatures.ini
(for Windows users path should be C:\Users\Dane\.android\advancedFeatures.ini) with the following content:
# Here's how to disable Vulkan apps to talk to the emulator.
# Add the following lines to ~/.android/advancedFeatures.ini (create this file if it doesn't exist already):
Vulkan = off
GLDirectMem = on

Kernel update breaks CUDA

I have a NVIDIA Grid K2 GPU allocated to a virtual server running Ubuntu 14.04. To reinstall the proper drivers after an automatic kernel update I ran sudo apt-get update followed by sudo apt-get install nvidia-current.
Now I cannot get CUDA 7.5 to work any longer. If I run the deviceQuery sample I get the following message:
CUDA Device Query (Runtime API) version (CUDART static linking)
cudaGetDeviceCount returned 35
-> CUDA driver version is insufficient for CUDA runtime version
Result = FAIL
This is the output from sudo lshw -c video
PCI (sysfs)
*-display
description: VGA compatible controller
product: SVGA II Adapter
vendor: VMware
physical id: f
bus info: pci#0000:00:0f.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: vga_controller bus_master cap_list rom
configuration: driver=vmwgfx latency=64
resources: irq:16 ioport:1070(size=16) memory:ec000000-efffffff memory:fe000000-fe7fffff memory:c0300000-c0307fff
*-display
description: VGA compatible controller
product: GK104GL [GRID K2]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci#0000:0b:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list
configuration: driver=nvidia latency=64
resources: irq:19 memory:fc000000-fcffffff memory:e0000000-e7ffffff memory:e8000000-e9ffffff ioport:5000(size=128)
I solved this issue with the following steps using the hints from the installation guide:
Uninstalled the packages that I had mistakenly installed by running sudo apt-get --purge remove nvidia-current.
Uninstalled CUDA 7.5 with the command sudo /usr/local/cuda-7.5/bin/uninstall_cuda_7.5.pl
Restarted the server using sudo reboot
Installed CUDA 7.5 by running the downloadable .run file and following the instructions.
Checking that everything works by running the deviceQuery CUDA sample.

I get "Runtime API error : invalid device ordinal." when I run cuda code on Ubuntu 10.04 using a GTX 590

I am trying to run a cuda application on an Ubuntu 10.04 system with a GeForce GTX 590.
I'm using the 295.41 drivers. I have set up 3 other systems with this code and all have worked. Two of them had GT 640s and one had a GTX 480 (or 460 - I can't quite remember). I have run cuda code on this machine with the same hardware before but it has since been formatted.
I get the invalid device ordinal error when I run my code and also when I run the SDK examples. I set up this machine with gentoo and got this error - I thought it could have something to do with the OS so I installed ubuntu and have the same problem. I can't think of what else to try. Does anyone have any suggestions?
Below is some output that could be handy.
user#pchan1:~$ lspci | grep nVidia
02:00.0 PCI bridge: nVidia Corporation Device 05b1 (rev a3)
03:00.0 PCI bridge: nVidia Corporation Device 05b1 (rev a3)
03:02.0 PCI bridge: nVidia Corporation Device 05b1 (rev a3)
06:00.0 PCI bridge: nVidia Corporation Device 05b9 (rev a3)
07:00.0 PCI bridge: nVidia Corporation Device 05b9 (rev a3)
07:02.0 PCI bridge: nVidia Corporation Device 05b9 (rev a3)
08:00.0 3D controller: nVidia Corporation Device 1088 (rev a1)
08:00.1 Audio device: nVidia Corporation Device 0e09 (rev a1)
09:00.0 VGA compatible controller: nVidia Corporation Device 1088 (rev a1)
09:00.1 Audio device: nVidia Corporation Device 0e09 (rev a1)
user#pchan1:~$ ls -l /dev/nvidia*
crw-rw-rw- 1 root root 195, 0 2012-10-30 10:22 /dev/nvidia0
crw-rw-rw- 1 root root 195, 1 2012-10-30 10:22 /dev/nvidia1
crw-rw-rw- 1 root root 195, 255 2012-10-30 10:22 /dev/nvidiactl
Edit: When I had this system working I was using a 64 bit os and the 64 bit drivers. I am now using a 32 bit os and 32 bit drivers.
Another Edit:
Thanks very much Przemyslaw Zych. You helped me solve the problem.
I had to blacklist Nouveau by doing the following.
Add a file in /etc/modprobe.d called blacklist-nouveau.conf (just the .conf ending is important) and in that file put the following two lines.
blacklist nouveau
options nouveau modeset=0
As instructed at the following guide
ftp://download.nvidia.com/XFree86/Linux-x86_64/256.44/README/commonproblems.html
Problem solved :)
As Przemyslaw Zych suggested there was another driver using the GPU (in this case nouveau).
To use the nvidia driver nouveau must be disabled. The procedure is listed here - ftp://download.nvidia.com/XFree86/Linux-x86_64/256.44/README/commonproblems.html - and I will summarise it below.
Create a file in /etc/modprobe.d called blacklist-nouveau.conf
Add the following two lines:
blacklist nouveau
options nouveau modeset=0
Then reboot the pc. This should prevent nouveau from loading and allow the nvidia drivers to be used.

Resources