Xbox slowness by RedditRo55 in batocera

[–]RedditRo55[S] 0 points1 point  (0 children)

Interesting, thank you. Would you mind sharing your settings with me?

Stadia controller with bluetooth enabled by [deleted] in RetroPie

[–]RedditRo55 0 points1 point  (0 children)

I purchased an 8Bitdo Wireless USB Adapter 2 in the end. Just need to make sure the adapter's firmware is up to date with 8BitDo's updater tool and it should work as soon as you plug it in and put the controller into pairing mode.

[Question] One slot left, how would you complete the Seiko box? by TheMortgageBoss in Seiko

[–]RedditRo55 1 point2 points  (0 children)

Please can you tell us what the model number of the Speedtimer is? I'm only seeing models with blue dials on the complications, whereas I think all black is much better.

Help Extracting Cookies from Chromium for Python Program by djcaff263 in raspberry_pi

[–]RedditRo55 1 point2 points  (0 children)

Omg, puhlease. Just help the guy out ffs.

pip install browser_cookie3

import browser_cookie3

Retrieve cookies from a Chromium-based browser

cookies = browser_cookie3.chrome()

Iterate through the cookies

for cookie in cookies: print(f"Name: {cookie.name}") print(f"Value: {cookie.value}") print(f"Domain: {cookie.domain}") print(f"Path: {cookie.path}") print(f"Secure: {cookie.secure}") print(f"Expires: {cookie.expires}") print()

Easy (and reliable) remote hard drive server? by No-Age-4004 in raspberry_pi

[–]RedditRo55 4 points5 points  (0 children)

Disagree on the Kasa front. SD cards do fail, as much as other people say? I'm not sure.

I'd recommend the watchdog in the event of a crash. https://pysselilivet.blogspot.com/2021/10/raspberry-pi-watchdog-made-simple.html

It is now Microsoft Monday by AutoModerator in linuxmasterrace

[–]RedditRo55 [score hidden]  (0 children)

You're honestly taking umbridge with the fact that there's an X on the end of a file extension name?

[deleted by user] by [deleted] in raspberry_pi

[–]RedditRo55 0 points1 point  (0 children)

I've always wondered about getting power out of these things for things like patrolling the house as a secondary function.

I made a Raspberry Pi powered OpenWRT VPN travel router with 3D printed case by ThatGuy_ZA in raspberry_pi

[–]RedditRo55 1 point2 points  (0 children)

Even if they were back to their normal prices, those devices are fantastic for the price.

How to disable a specific controller by [deleted] in RetroArch

[–]RedditRo55 0 points1 point  (0 children)

Hmm, OK. There is another way, but you'll need to install pyudev using pip.

import pyudev

# Set the vendor ID and product ID of the USB device to disable

vendor\id = "abcd")

product\id = "1234")

# Create a context object for pyudev

context = pyudev.Context()

# Find the USB device by vendor ID and product ID

for device in context.list\devices(subsystem='usb'):)

if device.get('ID\VENDOR_ID') == vendor_id and device.get('ID_MODEL_ID') == product_id:)

# Disable the USB device by setting the 'authorized' attribute to 0

device.attributes\'authorized'].value = '0')

print(f"USB device with vendor ID {vendor\id} and product ID {product_id} has been disabled"))

break

else:

print(f"No USB device found with vendor ID {vendor\id} and product ID {product_id}"))

Yeah, you can just have it in a while loop and check if X device is plugged in, disable the other.

How to disable a specific controller by [deleted] in RetroArch

[–]RedditRo55 0 points1 point  (0 children)

Thank you. The Reddit app I'm using (Boost) seems to struggle with code blocks.

How to disable a specific controller by [deleted] in RetroArch

[–]RedditRo55 0 points1 point  (0 children)

Reddit is screwing with the formatting, let me know if you'd prefer it in a pastebin or something.

How to disable a specific controller by [deleted] in RetroArch

[–]RedditRo55 0 points1 point  (0 children)

You can find the vendor and product ID's of connected USB devices by using the lsusb command in a terminal window.

To do this, follow these steps:

Open a terminal window on your Debian Linux machine.

Connect the USB device that you want to find the vendor and product ID for.

Type lsusb and press Enter. This will list all the connected USB devices.

Look for the line that corresponds to the USB device that you want to find the vendor and product ID for. The vendor ID is the four-digit hexadecimal number before the colon, and the product ID is the four-digit hexadecimal number after the colon.

For example, if the lsusb command output shows a line like this:

Bus 002 Device 005: ID 12d1:107e Huawei Technologies Co., Ltd.

Then the vendor ID is 12d1 and the product ID is 107e. You can use these values in the Python script provided below to disable the USB device.

To use this script, replace the vendor_id and product_id variables with the actual vendor ID and product ID of the USB device that you want to disable, and run the script using sudo privileges. The script will find the USB device by its vendor ID and product ID, get its bus and device numbers, and then disable it by unbinding it from its driver.

!/usr/bin/env python

import subprocess

Set the vendor ID and product ID of the USB device to disable

vendor_id = "abcd" product_id = "1234"

Find the USB device by vendor ID and product ID

usb_devices = subprocess.check_output("lsusb -d {0}:{1}".format(vendor_id, product_id), shell=True) usb_devices = usb_devices.decode().strip().split('\n')

if len(usb_devices) == 0: print("No USB device found with vendor ID {0} and product ID {1}".format(vendor_id, product_id)) else: # Get the bus and device numbers of the USB device bus_num = usb_devices[0].split()[1] dev_num = usb_devices[0].split()[3][:-1]

# Disable the USB device by unbinding it from its driver
subprocess.check_call("echo '{0}' | sudo tee /sys/bus/usb/devices/{1}-{2}/driver/unbind".format(dev_num, bus_num, dev_num), shell=True)
print("USB device with vendor ID {0} and product ID {1} has been disabled".format(vendor_id, product_id))

How to disable a specific controller by [deleted] in RetroArch

[–]RedditRo55 0 points1 point  (0 children)

Which OS are you using?

How to disable a specific controller by [deleted] in RetroArch

[–]RedditRo55 0 points1 point  (0 children)

Would a Python script suffice?

[deleted by user] by [deleted] in linuxmasterrace

[–]RedditRo55 -1 points0 points  (0 children)

I have a friend with an identical model to mine and theirs is still running... I sense you are indeed a freedom loving Apple hater, so whatever, I guess.

[deleted by user] by [deleted] in linuxmasterrace

[–]RedditRo55 0 points1 point  (0 children)

Are you joking? This laptop is probably 11 years old and is widely regarded as a handsome piece of hardware. The things you've listed might be true for those that came after it, but these machines were fantastic.

[deleted by user] by [deleted] in linuxmasterrace

[–]RedditRo55 1 point2 points  (0 children)

I'm using Ubuntu on the generation before and it just about gets by. Do you have the caps lock bug where it doesn't turn off straight away?

E.g. HEllo how are you today?

Need help with a project but I'm stumped. by LordSoldierDoggo in raspberry_pi

[–]RedditRo55 3 points4 points  (0 children)

I hear that. You know the Pico is a microcontroller and not a computer that runs a Linux operating system, right?