Making Game: USB to COM for WIndows XP

Original Source Link

Basically, I recently purchased a customer display for my EPOS till which runs on Windows XP (Yes I know XP Is old but it is running some legacy software). Anyways, in the Epson OPOS my display appears as just an USB device and whilst I did install the virtual COM for this device I have had no luck configuring it.

Does anyone know of anyway of assigning the USB customer display to say a COM4 port? Or even just converting it such that it works for a COM port?

Thanks in advance

Tagged : / / /

Ubuntu HowTo: files missing from usb

Original Source Link

Please please please help me i’ve been trying to escape from ubuntu and i am trying to make a bootable windows usb but it doesnt work, and now i tried to put the files from iso to usb (it was formatted as mbr ntfs) and i tried booting from it, and it gave me a blinking cursor,so i got back to ubuntu and my usb is not being recognized, i go to files and it tells me an error, i google the error and some guys tell me to use sudo ntfsfix /dev/sdb1
and now it works but my photos are not on it, please please please tell me theres some way of getting them and please tell me that they’re still there, i beggg plss
ubuntu 20.04
please help!!!!!!!!!

Tagged : /

Making Game: transiant episodes of total USB & HDMI failure

Original Source Link

Initially, after several installations attempts, I finally installed Debian with KDE on an Intel NUC Computer without having any USB problems at all — for a full day. Then every several hours or so, it would have an acute catastrophe of systems failing. (and that was the forth installation in the last couple of days) At the same time, my HDMI monitor will suddenly show a checkerboard-like grid with flickering rows and columns across the screen, with the desktop partially obscured by this grid. The grid has about half-dozen columns, with each column appearing to have 16 cells, as if a sort of blurry character. some of the cells flicker at different rates, sort of like something communicating, or memory addresses etc. Rebooting works to resolve this problem.

ALSO the USB will go totally out, including all power to the mouse and keyboard (the light on the mouse and keyboard go out). The USB becomes ceases to function. At this point I have to shutdown the computer, then power back up. Everything is usually fine for several hours, then it happens all over again.

I’ve reinstalled the operating systems four times in the last couple of days. This last time I reinstalled, it actually worked perfectly for a full day, then it started the same problem again, then started crashing every few hours, and now every thirty minutes.

HARDWARE Intel NUC CORE i3-3217U w 8GB RAM, reported as “7.5 GB” using lsmem command. The computer does not any ps-2 mouse or keyboard option, nor does it have a VGA or DVI port (only USB-2, HDMI and Ethernet ports, no legacy hardware, no USB-3). MONITOR Viewsonic 24″ 1080p-HD with HDMI.

OS SOFTWARE * “Debian 10.4 BUSTER” with 4.19.0-9-amd64 kernel* with XFCE desktop, and now Debian with KDE desktop, with two installs of each of XFCE and KDE. I had the KDE working well for a day. I have not very little software: texlive-full, kile and focuswriter, and I use Firefox with Facebook and Youtube.


HARDWARE Kubuntu Desktop Tower: with 4GB RAM and old legacy motherboard Intel [email protected] 32″ Acer 1080p-HD monitor (this is my 2nd monitor). SOFTWARE Kubuntu 18.04 with 4.15.0-101-generic kernel x86_64. (the other computer has Debian)

I have a 2nd Computer, the Kubuntu Desktop Tower, that had nearly the same problem as the Intel NUC Computer. The Kubuntu Desktop Tower: experienced either Total USB failure starting a week ago. At the same time the monitor would either freeze up or go black, but not flickering in the weird grid pattern, just freezing up, but without the garbage-grid displayed over the top. Rebooting would work to resolve that USB problem.

However several days ago the total USB failure STOPPED, and then i only had USB-keyboard failure, only the USB keyboards went out. (I have 3 usb-keyboards, all went out, and EVEN after Rebooting and unplugging power for a minute. No usb keyboard would work.) I switched to a legacy PS-2 keyboard and it worked for a full day, then it too would either stop working, or a single key would repeat itself endlessly, forcing a reboot. And so this was when I brought my Intel NUC Computer out of storage and started installing Debian with either XFCE or KDE.

Now I have them networked together with a Ethernet Switch Box. Strangely my Kubuntu Desktop Tower has been working perfect for two days in a row, without any modification to the software. And, I am successfully using USB keyboard again. However, my Intel NUC Computer with Debian-KDE is acting up, now having total USB failure every 15 minutes. And, I cannot ssh into the machine either the Wired Ethernet Connection between Switch.

The only thing these two machines have in common is Linux (not the exact same kernel) and the same Power outlet.


Without doing anything to my Kubuntu Desktop Tower

Tagged : / /

Ubuntu HowTo: USB Soundcard stops playing after some time

Original Source Link

I have some weird behaviour with my external USB soundcard. It is a Focusrite Scarlett 2i4. It is connected through a USB 3 port to my laptop, running 18.04 LTS.

I can

  • connect
  • play music

with it. Everything normal so far. The problem is that is stops putting out sound after a random amount of time. I have to replug the device, then it starts playing again. After some time, it stops to playback sound again. This is a loop and super annoying when your music stops playing in the middle of a song.

When the music stops playing, software seems to still be working (see screenshot). Sound is still playing back in Ubuntu sound panel and also in pulseaudio everything seems to be alright.

Do you have an idea how to fix this or where the bug comes from?No sound is played back, but controls look alright.

Edit 1
Output from $ usb-devices

T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=03 Dev#= 21 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  2
P:  Vendor=1235 ProdID=8200 Rev=04.1b
S:  Manufacturer=Focusrite
S:  Product=Scarlett 2i4 USB
C:  #Ifs= 6 Cfg#= 1 Atr=80 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 0 Cls=01(audio) Sub=01 Prot=20 Driver=snd-usb-audio
I:  If#= 1 Alt= 1 #EPs= 2 Cls=01(audio) Sub=02 Prot=20 Driver=snd-usb-audio
I:  If#= 2 Alt= 1 #EPs= 1 Cls=01(audio) Sub=02 Prot=20 Driver=snd-usb-audio
I:  If#= 3 Alt= 0 #EPs= 0 Cls=01(audio) Sub=01 Prot=00 Driver=snd-usb-audio
I:  If#= 4 Alt= 0 #EPs= 2 Cls=01(audio) Sub=03 Prot=00 Driver=snd-usb-audio
I:  If#= 5 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=01 Prot=10 Driver=(none)

Tagged : / / /

Linux HowTo: Can’t install Windows 7 from USB (GRUB)

Original Source Link

After 7 years of using windows 7 i decided to reinstall because it slowed down considerably. Used Rufus to create a USB using the ISO that i used to install it in 2013. But now when i try to boot through the USB i get the following screen:

enter image description here

Why is that?

Additional info:
I have Xubuntu in another partition in the same drive (Installed this year). GRUB 2 as the bootloader. Maybe that’s the issue?
ASUS motherboard.

It looks like a problem with the image on USB.
Please make sure you are using newest version of Rufus, however I found it not very reliable so I moved on to Etcher recently:
Balena Etcher

Xubuntu shouldn’t be an issue, however the GRUB would be most likely overwritten, so after installing windows, you would need to start Xubuntu from recovery media to re-install GRUB. otherwise you will no longer be able to start Xubuntu. You would also need to update GRUB with the information where it should look for windows.

Windows 7 is no longer supported, do you know that you can still upgrade it to windows 10 for free?

I get the feeling that you have two issues:

  1. Your display cannot handle basic graphics modes.
  2. You created a UEFI targeted bootable drive in Rufus instead of creating a BIOS/Legacy one.

No idea how you can ago around fixing the first issue, but for the second one, you may want to read this and recreate your USB in Rufus after making sure Target system is set to BIOS or UEFI-CSM.

Incidentally, I’m pretty sure that, if your monitor could show it, it would display a message that tells you that you are trying to boot a UEFI-only bootable drive in BIOS/Legacy mode, and that you need to recreate it to target BIOS/Legacy in Rufus so that it works.

Tagged : / / /

Making Game: How to use all the 45 Watt out of the Xiaomi Mi Power Bank Pro 3

Original Source Link

I have been working on this project that consists on making a somewhat portable computer… I intend on using a Raspberry Pi and an old laptop monitor to get the job done. The thing is that I bought a Xiaomi Mi Power Bank Pro 3 to power the computer (due to the pandemic I couldn’t get stuff to make my own battery pack) and after some tests to power the monitor via USB-C (up to 45W output) I found out that it doesn’t follow USB rules so I got no power whatsoever… The other USB-A ports don’t supply enough energy for the backlight to lit up. Is there anyway I can pull the advertised 45 watts out of the USB-C?

Controller Board

Power Bank

Desired Effect

Please ask me anything that might help you helping me. Thanks a lot.

Tagged : / / / /

Making Game: Can’t install Windows 7 from USB (GRUB)

Original Source Link

After 7 years of using windows 7 i decided to reinstall because it slowed down considerably. Used Rufus to create a USB using the ISO that i used to install it in 2013. But now when i try to boot through the USB i get the following screen:

enter image description here

Why is that?

Additional info:
I have Xubuntu in another partition in the same drive (Installed this year). GRUB 2 as the bootloader. Maybe that’s the issue?
ASUS motherboard.

It looks like a problem with the image on USB.
Please make sure you are using newest version of Rufus, however I found it not very reliable so I moved on to Etcher recently:
Balena Etcher

Xubuntu shouldn’t be an issue, however the GRUB would be most likely overwritten, so after installing windows, you would need to start Xubuntu from recovery media to re-install GRUB. otherwise you will no longer be able to start Xubuntu. You would also need to update GRUB with the information where it should look for windows.

Windows 7 is no longer supported, do you know that you can still upgrade it to windows 10 for free?

I get the feeling that you have two issues:

  1. Your display cannot handle basic graphics modes.
  2. You created a UEFI targeted bootable drive in Rufus instead of creating a BIOS/Legacy one.

No idea how you can ago around fixing the first issue, but for the second one, you may want to read this and recreate your USB in Rufus after making sure Target system is set to BIOS or UEFI-CSM.

Incidentally, I’m pretty sure that, if your monitor could show it, it would display a message that tells you that you are trying to boot a UEFI-only bootable drive in BIOS/Legacy mode, and that you need to recreate it to target BIOS/Legacy in Rufus so that it works.

Tagged : / / /

Linux HowTo: Disabling a laptop keyboard in place of a USB keyboard?

Original Source Link

I frequently plug a USB keyboard into my laptop to use instead of the laptop keyboard. However, when I do this, the OS (Windows Vista) then accepts input from both the laptop keyboard and the USB keyboard. I want to place the USB keyboard on top of the laptop keyboard and that might result in accidental keypresses if the laptop keyboard is still enabled. So, is there any way to disable the laptop’s built-in keyboard when a USB keyboard is plugged in? My laptop is a Dell Inspiron.

You could create 2 batch files for enabling/disabling your keyboard using its device id with the command line tool devcon.

From Microsoft Support website:

The DevCon utility is a command-line utility that acts as an
alternative to Device Manager. Using DevCon, you can enable, disable,
restart, update, remove, and query individual devices or groups of
devices

Then you could have shortcuts to these files on your desktop or on any other accessible location of your preference.

Tagged : / /

Making Game: Disabling a laptop keyboard in place of a USB keyboard?

Original Source Link

I frequently plug a USB keyboard into my laptop to use instead of the laptop keyboard. However, when I do this, the OS (Windows Vista) then accepts input from both the laptop keyboard and the USB keyboard. I want to place the USB keyboard on top of the laptop keyboard and that might result in accidental keypresses if the laptop keyboard is still enabled. So, is there any way to disable the laptop’s built-in keyboard when a USB keyboard is plugged in? My laptop is a Dell Inspiron.

You could create 2 batch files for enabling/disabling your keyboard using its device id with the command line tool devcon.

From Microsoft Support website:

The DevCon utility is a command-line utility that acts as an
alternative to Device Manager. Using DevCon, you can enable, disable,
restart, update, remove, and query individual devices or groups of
devices

Then you could have shortcuts to these files on your desktop or on any other accessible location of your preference.

Tagged : / /

Ubuntu HowTo: Using USB interfaces to read/write

Original Source Link

I’m looking for help on a problem I’ve been trying to find for a while. My end goal is to be able to read, process and write to an audio data stream of a USB audio interface. So, I have a raspberry pi with an ubuntu server on it. Some information I’ve found about it..

The device file is:
/dev/bus/usb/001/003
This is a binary file. I’m not sure how I can use it, if I can.

sys/dev/char/116:4
Major:minor nodes
Leads me to a directory that contains interface files.

lsusb:
Bus 001 Device 003: ID 1235:8205 Focusrite-Novation

Does anybody know about this subject enough to be able to point me to a direction? I am trying to read an audio stream from one port, process it, and output to another port.
Thank you.

Tagged : / / / /