martes, 26 de noviembre de 2024

set-date.sh

 #!/bin/bash  
echo "favor de meter la hora en el siguiente formato."
echo "2007-05-27 17:27"

#by AlexLikeRock
echo " "

#Take the input
read  


echo trabajando...
echo "$REPLY"
echo " "

hwclock --set --date="date +$REPLY"


# hwclock --set --date="date '+%D %H:%M:%S'"

Brillo-editar.sh

#!/bin/bash
#PLEASE RUN AS "ROOT" 

#se requiere correr como "root"


#editor de brillo por terminal
# Friday, October 04 2024
# 17:34
#by AlexLikeRock

#instructions
#search "brightness" inside of  /sys/class/backlight/
#examples:
#  /sys/class/backlight/acpi_video0/brightness
#  /sys/class/backlight/nv_backlight/brightness
#  /sys/class/backlight/XXXXXXXX/brightness

#2 options :
#1).- run this script as ROOT
#2).-  run this script as normal user, but you need change permissions  of the file  brightness:
#   # chmod 777 /sys/class/backlight/XXXXXXXX/brightness

#other different way :
# xrandr --output LVDS-1 --brightness 0  ## screen OFF ##
# xrandr --output LVDS-1 --brightness 0.1 # minimal #
# xrandr --output LVDS-1 --brightness 0.2
# xrandr --output LVDS-1 --brightness 0.5
# xrandr --output LVDS-1 --brightness 0.7
# xrandr --output LVDS-1 --brightness 1    #max brightness#
# xrandr --output LVDS-1 --brightness 2    # bad option #




echo "poner numero del 1 al 100"
read -r  option  

echo $option  >  /sys/class/backlight/nv_backlight/brightness
echo "se puso el brillo al "  $option  "%"
echo "listo"
exit 0

transmission.sh

#!/bin/bash

#ver : Sat 17 Oct 2015 07:03:55 PM PDT
#este es un puto script parra  transmission
#requisito opcional :   espeak  mbrola-mx1  mbrola-mx2

echo " sonido de transmission  "
beep
# mplayer /home/use/some-path/A1-Vibe.wav 

#/blabla/aplayer  /ruta/sonido.wav


espeak -s 130 -v mb-mx1 " Descarga, Finalizada " 

exit 0

miércoles, 20 de noviembre de 2024

Control PS3 en Debian

 Control PS3  en Debian

 

 

requisitos  :

# apt-get install bluetooth bluez bluez-tools rfkill rfcomm hardinfo
 
requisitos extraudinarios:
# apt install bluez-firmware firmware-atheros 
# apt install bluez-firmware firmware-realtek 
apt install etc.....
 

 

Preparativos:

  • ubicar nombre del modulo y compañia 

hardinfo ---> Dell Computer Corp. BCM20702A0 Bluetooth Module
$ lsusb   ----->   Bus 003 Device 003: ID 413c:8197 Dell Computer Corp. BCM20702A0 Bluetooth Module

  • verificar si esta corriendo

$  service bluetooth status
bluetooth is running. 

encenderlo: 

# service bluetooth start



 

 a) por USB 

 


b) por bluetooth 



 service bluetooth status
 
 
 
 
NOTAS PERSONALES:
 modprobe -c | grep bluetooth
 
 
FUENTES: 
https://www.dagorret.com.ar/como-configurar-el-bluetooth-en-linux-con-bluez-y-hcitool/
 https://wiki.archlinux.org/title/Kernel_module_(Espa%C3%B1ol)#Manejo_manual_de_m%C3%B3dulos
 https://wiki.debian.org/BluetoothUser#Preparation
 

http://iwilcox.me.uk/2012/sixaxis-ubuntu
https://web.archive.org/web/20150908135328/iwilcox.me.uk/2012/sixaxis-ubuntu

https://web.archive.org/web/20151001010852/https://iwilcox.me.uk/2012/bluez_4.98-2ubuntu7-sixaxis.1_amd64.deb



https://web.archive.org/web/20150920035102/http://www.pabr.org/sixlinux/sixpair.c

cp /usr/bin/ld /tmp/ld 

$  lsusb -v | grep 'Bus\|bEndpointAddress\|wMaxPacketSize\|idVendor\|idProduct' 

Bus 002 Device 003: ID 054c:0268 Sony Corp. Batoh Device / PlayStation 3 Controller
idVendor 0x054c Sony Corp.
idProduct 0x0268 Batoh Device / PlayStation 3 Controller
(Bus Powered)
bEndpointAddress 0x02 EP 2 OUT
wMaxPacketSize 0x0040 1x 64 bytes
bEndpointAddress 0x81 EP 1 IN
wMaxPacketSize 0x0040 1x 64 bytes
(Bus Powered)
 
 https://github.com/winterheart/broadcom-bt-firmware/tree/master/brcm
 
 
 


Donarme :->

Donar a AlexLikeRock
muchas gracias por tu ayuda :->

set-date.sh

 #!/bin/bash   echo "favor de meter la hora en el siguiente formato." echo "2007-05-27 17:27" #by AlexLikeRock echo ...