Brincando com meu antigo companheiro de consultorias, o iBook xuxu, comecei a quebrar a cabeça para fazer rodar um programa, um script, direto via interface gráfica, simplesmente com um clique. Acabei encontrando a linguagem, mais que natural, do Applescript. A linguagem é tão fácil que algumas coisas óbvias ficam difíceis.
Para criar shell scripts (ou inicialização de algum aplicativo java, como era meu caso), basta o código:
do shell script "/patch/script.sh"
Encontrei na net outro trecho de código simplesmente hilário...
say "Dum dum dum dum dum dum dum he he he ho ho ho fa lah lah lah lah lah lah fa lah full hoo hoo hoo" using "Cellos"
Para quem quiser descobrir mais, aqui segue o manual:
Reativando meu velho iBook G3, resolvi investir um pouco mais de tempo no brinquedo. Como não serei o usuário direto, estou procurando formas de melhorar seu uso. Entre os problemas que vi, o uso de acentos em português foi o mais gritante.
O suporte nativo é feito através do uso de "special keys" usando combinações. Felizmente encontrei uma alternativa muito melhor, habilitando as "dead-keys":"
No momento teclo a partir do mesmo e tudo (em relação à acentuação) funciona corretamente :-)
This article is kindly linked by:
|
Barely finished my last article about FreeBSD (PRERELEASE at that time) on Compaq laptops, and my computer was replaced (as part of Company refresh policy). I was upgraded to a laptop Compaq NC 6400.
As any good lazy Unix sysadmin (and clever), I just recovered a backup from my previous model (nc 6220). It worked *almost fine*. Just a few adjustments were needed.
Previously I wrote about my quest, getting FreeBSD up and running. As such, let me start describing a little better this laptop hardware:
First thing, I had to move my partitions from /dev/ad0 to /dev/ad4since they use the new SATA interface. A boot with recovery disk was enough to achieve this.
First boot was ok, but far from fine. Screen came up weirdly, caused by xorg.conf, due the chipset swap from i810 to i915. And also the physical screen size was different from old 14".
Seeking in google, I found the following links:
Last resource was really handy. I could realize screen was 1280x800 instead. And some Linux procedures (not so few nowadays) helped me to make a roadmap to have FreeBSD successfully installed.
To achieve an optimal usage, add the following lines in /boot/loader.conf:
i915_load="YES"
It'll load all required modules (drm and so on).
Through ports, install package sysutils/915resolution. Then add the following lines to /etc/rc.conf:
i915resolution_enable="YES"
i915resolution_modes="3c"
i915resolution_width=1280
i915resolution_height=800
This will be enough to fix the poorly effect from xorg usage only.
Just add the following line to /boot/loader.conf:
snd_hda_load="YES"
This one was a little bit trick. I had to add the following lines to /boot/loader.conf:
wlan_wep_load="YES"
wlan_scan_sta_load="YES"
if_ath_load="YES"
legal.intel_wpi.license_ack=1
wpifw_load="YES"
if_wpi_load="YES"
wlan_load="YES"
wlan_amrr_load="YES"
firmware_load="YES"
The last statement, firmware_load isn't needed since legal.intel_wpi.license_ack is in place, but it didn't hurt me to include there :-)
As a plus, I added package sysutils/lineakd to make all internet keys useful (they were dead before). I configured /usr/local/etc/lineakkb.def as described in Linux article, just appending the following lines:
[HP-NC6400]
brandname = "Hewlett Packard"
modelname = "Compaq NC6400"
[KEYS]
Information = 245
Wireless = 133
Presentation = 205
Mute = 160
VolumeDown = 174
VolumeUp = 176
[END KEYS]
[END HP-NC6400]
It worked fine.
It works by default once ACPI is enabled. Just check the following line in your boot messages:
SMP: AP CPU #1 Launched!
I've seen lately a lot of kernel messages as below:
acpi_tz0: _CRT value is absurd, ignored (256.0C)
acpi_tz0: _CRT value is absurd, ignored (256.0C)
acpi_tz0: _CRT value is absurd, ignored (256.0C)
acpi_tz0: _CRT value is absurd, ignored (256.0C)
acpi_tz0: _CRT value is absurd, ignored (256.0C)
acpi_tz0: _CRT value is absurd, ignored (256.0C)
acpi_tz0: _CRT value is absurd, ignored (256.0C)
It's harmless, but annoying. I tried to remove it setting sysctl with hw.acpi.thermal.polling_rate=0, but it didn't work...
Just loaded as before, as bge0.
Remains as a dream. Not working and crashing everything, as before. Some day it'll be fixed... For now, I need to shutdown my laptop every time. At least it isn't crashing on boot as before.
Not working and just detected as generic USB. Since I don't use so much those things, I really don't care about it. Maybe it would useful for internal modem, but since wireless broadband is becoming popular, I really don't think I'll need it soon.
Copyright (c) 1992-2008 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.0-STABLE #8: Fri Apr 18 10:57:25 BRT 2008
This email address is being protected from spambots. You need JavaScript enabled to view it. :/usr/obj/usr/src/sys/MUSASHI
module_register: module vgapci/i915 already exists!
Module vgapci/i915 failed to register: 17
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Core(TM)2 CPU T5500 @ 1.66GHz (1662.52-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0x6f2 Stepping = 2
Features=0xbfebfbff
Features2=0xe3bd
AMD Features=0x20100000
AMD Features2=0x1
Cores per package: 2
real memory = 1602027520 (1527 MB)
avail memory = 1559875584 (1487 MB)
ACPI APIC Table:
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
cpu0 (BSP): APIC ID: 0
cpu1 (AP): APIC ID: 1
ioapic0: Changing APIC ID to 1
ioapic0 irqs 0-23 on motherboard
kbd1 at kbdmux0
kqemu version 0x00010300
kqemu: KQEMU installed, max_locked_mem=777868kB.
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0: on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, 5f700000 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: port 0x1008-0x100b on acpi0
acpi_ec0: port 0x62,0x66 on acpi0
acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 900
cpu0: on acpi0
est0: on cpu0
est0: Setting 1667 MHz
p4tcc0: on cpu0
cpu1: on acpi0
est1: on cpu1
est1: Setting 1667 MHz
p4tcc1: on cpu1
pcib0: port 0xcf8-0xcff on acpi0
pci0: on pcib0
vgapci0: port 0x4000-0x4007 mem 0xf4600000-0xf467ffff,0xe0000000-0xefffffff,0xf4680000-0xf46bffff irq 16 at device 2.0 on pci0
agp0: on vgapci0
agp0: detected 7932k stolen memory
agp0: aperture size is 256M
drm0: on vgapci0
info: [drm] AGP at 0xe0000000 256MB
info: [drm] Initialized i915 1.5.0 20060119
vgapci1: mem 0xf4700000-0xf477ffff at device 2.1 on pci0
pcm0: mem 0xf4780000-0xf4783fff irq 16 at device 27.0 on pci0
pcm0: [ITHREAD]
pcib1: irq 16 at device 28.0 on pci0
pci8: on pcib1
pci0:8:0:0: invalid VPD data, remain 0xffff
bge0: mem 0xf4100000-0xf410ffff irq 16 at device 0.0 on pci8
miibus0: on bge0
brgphy0: PHY 1 on miibus0
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
bge0: Ethernet address: 00:1b:38:36:e0:3f
bge0: [ITHREAD]
pcib2: irq 17 at device 28.1 on pci0
pci16: on pcib2
wpi0: mem 0xf4000000-0xf4000fff irq 17 at device 0.0 on pci16
wpi0: Ethernet address: 00:1b:77:5d:bd:9f
wpi0: [ITHREAD]
pcib3: irq 19 at device 28.3 on pci0
pci32: on pcib3
uhci0: port 0x4020-0x403f irq 20 at device 29.0 on pci0
uhci0: [GIANT-LOCKED]
uhci0: [ITHREAD]
usb0: on uhci0
usb0: USB revision 1.0
uhub0: on usb0
uhub0: 2 ports with 2 removable, self powered
uhci1: port 0x4040-0x405f irq 22 at device 29.1 on pci0
uhci1: [GIANT-LOCKED]
uhci1: [ITHREAD]
usb1: on uhci1
usb1: USB revision 1.0
uhub1: on usb1
uhub1: 2 ports with 2 removable, self powered
uhci2: port 0x4060-0x407f irq 18 at device 29.2 on pci0
uhci2: [GIANT-LOCKED]
uhci2: [ITHREAD]
usb2: on uhci2
usb2: USB revision 1.0
uhub2: on usb2
uhub2: 2 ports with 2 removable, self powered
uhci3: port 0x4080-0x409f irq 19 at device 29.3 on pci0
uhci3: [GIANT-LOCKED]
uhci3: [ITHREAD]
usb3: on uhci3
usb3: USB revision 1.0
uhub3: on usb3
uhub3: 2 ports with 2 removable, self powered
ehci0: mem 0xf4784000-0xf47843ff irq 20 at device 29.7 on pci0
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: on ehci0
usb4: USB revision 2.0
uhub4: on usb4
uhub4: 8 ports with 8 removable, self powered
pcib4: at device 30.0 on pci0
pci2: on pcib4
cbb0: mem 0xf4200000-0xf4200fff irq 18 at device 6.0 on pci2
cardbus0: on cbb0
pccard0: on cbb0
cbb0: [ITHREAD]
pci2: at device 6.2 (no driver attached)
pci2: at device 6.3 (no driver attached)
pci2: at device 6.4 (no driver attached)
isab0: at device 31.0 on pci0
isa0: on isab0
atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x40a0-0x40af irq 16 at device 31.1 on pci0
ata0: on atapci0
ata0: [ITHREAD]
ata1: on atapci0
ata1: [ITHREAD]
atapci1: port 0x13f0-0x13f7,0x15f4-0x15f7,0x1370-0x1377,0x1574-0x1577,0x40d0-0x40df mem 0xf4785000-0xf47853ff irq 21 at device 31.2 on pci0
atapci1: [ITHREAD]
atapci1: AHCI Version 01.10 controller with 4 ports detected
ata2: on atapci1
ata2: [ITHREAD]
ata3: on atapci1
ata3: port not implemented
ata3: [ITHREAD]
ata4: on atapci1
ata4: port not implemented
ata4: [ITHREAD]
ata5: on atapci1
ata5: port not implemented
ata5: [ITHREAD]
battery0: on acpi0
battery1: on acpi0
acpi_acad0: on acpi0
acpi_button0: on acpi0
acpi_lid0: on acpi0
acpi_tz0: on acpi0
acpi_tz0: _CRT value is absurd, ignored (256.0C)
acpi_tz1: on acpi0
acpi_tz2: on acpi0
acpi_tz3: on acpi0
acpi_tz4: on acpi0
atkbdc0: port 0x60,0x64 irq 1 on acpi0
atkbd0: irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0: irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model IntelliMouse, device ID 3
sio0: port 0x3e8-0x3ef,0x100-0x10f irq 7 drq 3 flags 0x10 on acpi0
sio0: type 16550A
sio0: [FILTER]
pmtimer0 on isa0
orm0: at iomem 0xc0000-0xcffff pnpid ORM0000 on isa0
sc0: at flags 0x100 on isa0
sc0: VGA
vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ppc0: at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: on ppc0
lpt0: on ppbus0
lpt0: Polled port
ppi0: on ppbus0
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
ugen0: on uhub1
ums0: on uhub1
ums0: 8 buttons and Z dir.
uhid0: on uhub1
Timecounters tick every 1.000 msec
acd0: DVDR at ata0-master PIO4
ad4: 76319MB at ata2-master SATA150
pcm0:
pcm0:
SMP: AP CPU #1 Launched!
hostb0@pci0:0:0:0: class=0x060000 card=0x30ad103c chip=0x27a08086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = '955XM/945GM/PM/GMS/940GML Express Processor to DRAM Controller'
class = bridge
subclass = HOST-PCI
vgapci0@pci0:0:2:0: class=0x030000 card=0x30ad103c chip=0x27a28086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = 'Mobile 945GM/GU Express Integrated Graphics Controller'
class = display
subclass = VGA
vgapci1@pci0:0:2:1: class=0x038000 card=0x30ad103c chip=0x27a68086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = 'Mobile 945GM/GU Express Integrated Graphics Controller'
class = display
pcm0@pci0:0:27:0: class=0x040300 card=0x30ad103c chip=0x27d88086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) High Definition Audio'
class = multimedia
pcib1@pci0:0:28:0: class=0x060400 card=0x30ad103c chip=0x27d08086 rev=0x01 hdr=0x01
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) PCIe Root Port'
class = bridge
subclass = PCI-PCI
pcib2@pci0:0:28:1: class=0x060400 card=0x30ad103c chip=0x27d28086 rev=0x01 hdr=0x01
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) PCIe Root Port'
class = bridge
subclass = PCI-PCI
pcib3@pci0:0:28:3: class=0x060400 card=0x30ad103c chip=0x27d68086 rev=0x01 hdr=0x01
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) PCIe Root Port'
class = bridge
subclass = PCI-PCI
uhci0@pci0:0:29:0: class=0x0c0300 card=0x30ad103c chip=0x27c88086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) USB Universal Host Controller'
class = serial bus
subclass = USB
uhci1@pci0:0:29:1: class=0x0c0300 card=0x30ad103c chip=0x27c98086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) USB Universal Host Controller'
class = serial bus
subclass = USB
uhci2@pci0:0:29:2: class=0x0c0300 card=0x30ad103c chip=0x27ca8086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) USB Universal Host Controller'
class = serial bus
subclass = USB
uhci3@pci0:0:29:3: class=0x0c0300 card=0x30ad103c chip=0x27cb8086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) USB Universal Host Controller'
class = serial bus
subclass = USB
ehci0@pci0:0:29:7: class=0x0c0320 card=0x30ad103c chip=0x27cc8086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) USB 2.0 Enhanced Host Controller'
class = serial bus
subclass = USB
pcib4@pci0:0:30:0: class=0x060401 card=0x30ad103c chip=0x24488086 rev=0xe1 hdr=0x01
vendor = 'Intel Corporation'
device = '82801BAM/CAM/DBM (ICH2-M/3-M/4-M) Hub Interface to PCI Bridge'
class = bridge
subclass = PCI-PCI
isab0@pci0:0:31:0: class=0x060100 card=0x30ad103c chip=0x27b98086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801GBM (ICH7-M) LPC Interface Controller'
class = bridge
subclass = PCI-ISA
atapci0@pci0:0:31:1: class=0x01018a card=0x30ad103c chip=0x27df8086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) Ultra ATA Storage Controller'
class = mass storage
subclass = ATA
atapci1@pci0:0:31:2: class=0x010601 card=0x30ad103c chip=0x27c58086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801GB Mobile I/O Controller Hub SATA cc=AHCI'
class = mass storage
bge0@pci0:8:0:0: class=0x020000 card=0x30ad103c chip=0x16fd14e4 rev=0x21 hdr=0x00
vendor = 'Broadcom Corporation'
device = 'BCM5753M NetXtreme Gigabit Ethernet PciXpress'
class = network
subclass = ethernet
wpi0@pci0:16:0:0: class=0x028000 card=0x135c103c chip=0x42228086 rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
device = '10418086 Intel 3945ABG Wireless LAN controller'
class = network
cbb0@pci0:2:6:0: class=0x060700 card=0x30ad103c chip=0x8039104c rev=0x00 hdr=0x02
vendor = 'Texas Instruments (TI)'
device = 'PCIxx12 Cardbus Controller'
class = bridge
subclass = PCI-CardBus
none0@pci0:2:6:2: class=0x018000 card=0x30ad103c chip=0x803b104c rev=0x00 hdr=0x00
vendor = 'Texas Instruments (TI)'
device = 'PCIxx12 Integrated Flash Media Controller'
class = mass storage
none1@pci0:2:6:3: class=0x080500 card=0x30ad103c chip=0x803c104c rev=0x00 hdr=0x00
vendor = 'Texas Instruments (TI)'
device = 'PCIxx12 SDA Standard Compliant SD Host Controller'
class = base peripheral
none2@pci0:2:6:4: class=0x078000 card=0x30ad103c chip=0x803d104c rev=0x00 hdr=0x00
vendor = 'Texas Instruments (TI)'
device = 'N/A Texas Instruments PCI GemCore based SmartCard controller'
class = simple comms
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/local/share/X11/rgb"
ModulePath "/usr/local/lib/xorg/modules"
FontPath "/usr/local/lib/X11/fonts/misc"
FontPath "/usr/local/lib/X11/fonts/TTF"
FontPath "/usr/local/lib/X11/fonts/OTF"
FontPath "/usr/local/lib/X11/fonts/Type1"
FontPath "/usr/local/lib/X11/fonts/100dpi"
FontPath "/usr/local/lib/X11/fonts/75dpi"
FontPath "/usr/local/share/fonts"
EndSection
Section "Module"
Load "GLcore"
Load "dbe"
Load "dri"
Load "extmod"
Load "glx"
Load "record"
Load "xtrap"
Load "freetype"
Load "type1"
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "abnt2"
Option "XkbLayout" "br"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/sysmouse"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Device"
### Available Driver options are:-
### Values: : integer, : float, : "True"/"False",
### : "String", : " Hz/kHz/MHz"
### [arg]: arg optional
#Option "NoAccel" # []
#Option "SWcursor" # []
#Option "ColorKey" #
#Option "CacheLines" #
#Option "Dac6Bit" # []
#Option "DRI" # []
Option "NoDDC"
Option "DRI" "true"
#Option "NoDDC" # []
#Option "ShowCache" # []
#Option "XvMCSurfaces" #
#Option "PageFlip" # []
Option "XAANoOffscreenPixmaps" "true"
Identifier "Card0"
Driver "i810"
VendorName "Intel Corporation"
BoardName "Mobile 915GM/GMS/910GML Express Graphics Controller"
BusID "PCI:0:2:0"
VideoRam 64000
EndSection
Section "Device"
Identifier "Card1"
Driver "i810"
BusID "PCI:0:2:0"
# activate maximum supported througput thrue AGP
Option "AGPMode" "4"
# activate fast writes
Option "AGPFastWrite" "yes"
# needed for OpenGL support
Option "ColorTiling" "on"
# Advanced 3D option
Option "EnablePageFlip" "yes"
# Must be enabled to support dual monitor
#Option "MergedFB" "true"
# Modes for the second minitor
#Option "MetaModes" "1024x768"
# What monitor is connect where: 1: LCD, 2: CRT
#Option "MonitorLayout" "LVDS, CRT"
# Advanced power saving option.
Option "DynamicClocks" "true"
# Allow Fn-F4
Option "BIOSHotkeys" "true"
EndSection
Section "Monitor"
Identifier "Monitor0"
ModelName "1280X1024@60HZ"
#Option "DPMS"
EndSection
Section "Monitor"
DisplaySize 300 230
HorizSync 28-82
Identifier "Monitor1"
ModelName "1280X1024@60HZ"
Option "DPMS"
VendorName "--> LCD"
VertRefresh 50-60
#UseModes "MyModes"
EndSection
Section "Modes"
Identifier "MyModes"
Modeline "1280x1024" 105.15 1280 1360 1496 1712 1024 1025 1028 1059
Modeline "1280x960" 97.68 1280 1352 1488 1696 960 961 964 993
Modeline "1280x800" 80.58 1280 1344 1480 1680 800 801 804 827
Modeline "1152x864" 78.82 1152 1216 1336 1520 864 865 868 894
Modeline "1280x768" 77.37 1280 1344 1480 1680 768 769 772 794
Modeline "1024x768" 61.89 1024 1080 1184 1344 768 769 772 794
Modeline "800x600" 36.88 800 832 912 1024 600 601 604 621
Modeline "768x576" 33.74 768 792 872 976 576 577 580 596
Modeline "640x480" 23.06 640 656 720 800 480 481 484 497
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card1"
Monitor "Monitor1"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x800" "1280x1024" "1280x960" "1280x800" "1152x864" "1280x768" "1024x768" "800x600" "768x576" "640x480"
Virtual 1600 1200
EndSubSection
EndSection
Section "DRI"
Group 0
Mode 0666
EndSection
Entre meus momentos de ócio, tento gastar o mesmo com o chamada "ócio criativo" (como define Domenico de Masi), onde ao invés de ficar assistindo TV, busco artigos na Internet, leio livros, etc. Entre essas buscas por algo para meu tempo sem labuta, dei de encontro com o o artigo Cooking with Linux - Eye-Popping Panels, escrito por Marcel Gagné, na Linux Journal.
Já tentei utilizar o Beryl, mas achei muito gasto de CPU para uns poucos efeitos 3D. Dessa vez tive impressões melhores e resolvi tentar seguir as dicas de Marcel. O ksmoothdock eu já tinha instalado (via ports), mas nunca usei muito seriamente. Como combinava com meu ambiente KDE, alterei a barra padrão para o topo do desktop e o adicionei como padrão na parte mais baixa. Apenas precisei fazer um link simbólico dentro de .kde/Autostart/para o binário e isso já fez o trabalho de iniciar a barra junto com resto.
O 3ddesktop necessitou de um pouco mais elaboração. Precisei associar o botão F2 ao comando (3ddesk) e criar um comando
3ddesk --acquire
em .kde/Autostart/ para adquirir as telas. Somente isso e está pronto para usar, com resultados impressionantes.
Trabalhar no fim de semana não é fácil pra ninguém. Mas não disseram que precisava ser um inferno. Como diz o anúncio da security list da Debian: "You know the drill...".
Não me lembro de ter tido esse problema antes, mas para tudo sempre existe a primeira vez....
Apr 7 12:43:56 musashi root: WARNING: system temperature too high, shutting down soon!
Apr 7 12:43:56 musashi kernel:
Apr 7 12:43:56 musashi root: WARNING: system temperature too high, shutting down soon!
Perdi tudo que estava trabalhando, mas não perdi o laptop :-)
Surpresa ao fazer o update dos sources do sistema:
20080226: FreeBSD 7.0-RELEASE
Sem perda de tempo, "make buildworld" e vamos lá!
This article is linked by:
|
In this article I'll break my style and write in english since its aimed to describe my experience with a laptop Compaq nc6220 and FreeBSD-7.0-PRERELEASE. Hopefully it can be a source of information for further reference.
This a standard laptop from the company (Ericsson). It isn't exactly powerfull but can help you to have your work done. It's equiped with:
I found some other descriptions mismatching my configuration. It's probably because its a corporate machine and better improvements like wi-fi and CD writer were just removed. Sad but that's my reality.
Initially I installed FreeBSD-6.0 on it. Since then I've coming upgrading, over and over. I was running FreeBSD-6.3-RC1 when I decide to move on, for FreeBSD-7.0 (CURRENT at that time). As any upgrade, it was painfull.
I could use alternative hardware for a few purpouses, like a PCMCIA interface for Wi-Fi, but some internal parts didn't work at all. I was force to completely disable ACPI since it was hanging it each 15 seconds. I found unplug the power cable could fix it, but it was an annoying task to be done frequently. I could found some discussions about this issue,. but no effective fix was provided until now.
Right now the current status follows:
If you could go further then me, don't hesitate to share your success :-)
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/local/share/X11/rgb"
ModulePath "/usr/local/lib/xorg/modules"
FontPath "/usr/local/lib/X11/fonts/misc/"
FontPath "/usr/local/lib/X11/fonts/TTF/"
FontPath "/usr/local/lib/X11/fonts/OTF"
FontPath "/usr/local/lib/X11/fonts/Type1/"
FontPath "/usr/local/lib/X11/fonts/100dpi/"
FontPath "/usr/local/lib/X11/fonts/75dpi/"
EndSection
Section "Module"
Load "GLcore"
Load "dbe"
Load "dri"
Load "extmod"
Load "glx"
Load "record"
Load "xtrap"
Load "freetype"
Load "type1"
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "abnt2"
Option "XkbLayout" "br"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/sysmouse"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
#DisplaySize 290 220 # mm
Identifier "Monitor0"
VendorName "AUO"
ModelName "e11"
EndSection
Section "Device"
### Available Driver options are:-
### Values: : integer, : float, : "True"/"False",
### : "String", : " Hz/kHz/MHz"
### [arg]: arg optional
#Option "NoAccel" # []
#Option "SWcursor" # []
#Option "ColorKey" #
#Option "CacheLines" #
#Option "Dac6Bit" # []
#Option "DRI" # []
#Option "NoDDC" # []
#Option "ShowCache" # []
#Option "XvMCSurfaces" #
#Option "PageFlip" # []
Identifier "Card0"
Driver "i810"
VendorName "Intel Corporation"
BoardName "Mobile 915GM/GMS/910GML Express Graphics Controller"
BusID "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1024x768" "640x480" "1280x960" "1280x1024" "800x600" "1152x864" "1600x1200"
Virtual 1600 1200
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768" "640x480" "1280x960" "1280x1024" "800x600" "1152x864" "1600x1200"
Virtual 1600 1200
EndSubSection
EndSection
Section "DRI"
Group 0
EndSection
hostb0@pci0:0:0:0: class=0x060000 card=0x0944103c chip=0x25908086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = '915GM Mobile Intel(R) 915GM/PM/GMS/910GML Express Processor to DRAM Controller'
class = bridge
subclass = HOST-PCI
vgapci0@pci0:0:2:0: class=0x030000 card=0x308a103c chip=0x25928086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = '82915GM/GMS, 82910GML Integrated Graphics Device'
class = display
subclass = VGA
vgapci1@pci0:0:2:1: class=0x038000 card=0x308a103c chip=0x27928086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = 'Mobile 82915GLx/x/x Mobile Intel(R) 915GM/GMS/, 910GML Express Chipset Family'
class = display
pcib1@pci0:0:28:0: class=0x060400 card=0x0944103c chip=0x26608086 rev=0x03 hdr=0x01
vendor = 'Intel Corporation'
device = '82801FB/FR/FW/FRW PCI Express Port 1'
class = bridge
subclass = PCI-PCI
pcib2@pci0:0:28:1: class=0x060400 card=0x0944103c chip=0x26628086 rev=0x03 hdr=0x01
vendor = 'Intel Corporation'
device = '82801FB/FR/FW/FRW PCI Express Port 2'
class = bridge
subclass = PCI-PCI
uhci0@pci0:0:29:0: class=0x0c0300 card=0x0944103c chip=0x26588086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = '82801FB/FR/FW/FRW USB UHCI Controller'
class = serial bus
subclass = USB
uhci1@pci0:0:29:1: class=0x0c0300 card=0x0944103c chip=0x26598086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = '82801FB/FR/FW/FRW USB UHCI Controller'
class = serial bus
subclass = USB
uhci2@pci0:0:29:2: class=0x0c0300 card=0x0944103c chip=0x265a8086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = '82801FB/FR/FW/FRW USB UHCI Controller'
class = serial bus
subclass = USB
ehci0@pci0:0:29:7: class=0x0c0320 card=0x0944103c chip=0x265c8086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = '82801FB/FR/FW/FRW USB 2.0 EHCI Controller'
class = serial bus
subclass = USB
pcib3@pci0:0:30:0: class=0x060401 card=0x0944103c chip=0x24488086 rev=0xd3 hdr=0x01
vendor = 'Intel Corporation'
device = '82801BAM/CAM/DBM (ICH2-M/3-M/4-M) Hub Interface to PCI Bridge'
class = bridge
subclass = PCI-PCI
pcm0@pci0:0:30:2: class=0x040100 card=0x0944103c chip=0x266e8086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = 'Intel Corporation 82830M/MG SDRAM Controller / Ho AC '97 Audio Controller/ Sigmatel (SoundMAX Integrated Digital Audio)'
class = multimedia
subclass = audio
none0@pci0:0:30:3: class=0x070300 card=0x0944103c chip=0x266d8086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = 'Intel 82801DB Realtek ALC655 @ Intel 82801EB ICH5-M - AC'97 Audio Controller [B-1] PCI'
class = simple comms
subclass = generic modem
isab0@pci0:0:31:0: class=0x060100 card=0x0944103c chip=0x26418086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = '82801FBM LPC Interface Bridge (ICH6-M)'
class = bridge
subclass = PCI-ISA
atapci0@pci0:0:31:1: class=0x01018a card=0x0944103c chip=0x266f8086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = '82801FB/FBM Ultra ATA Storage Controllers - 266F'
class = mass storage
subclass = ATA
bge0@pci0:16:0:0: class=0x020000 card=0x0944103c chip=0x167d14e4 rev=0x11 hdr=0x00
vendor = 'Broadcom Corporation'
device = 'BCM5751M Broadcom NetXtreme Gigabit Ethernet'
class = network
subclass = ethernet
cbb0@pci0:2:6:0: class=0x060700 card=0x0944103c chip=0x8031104c rev=0x00 hdr=0x02
vendor = 'Texas Instruments (TI)'
device = 'PCIxx21/x515 Cardbus Controller'
class = bridge
subclass = PCI-CardBus
none1@pci0:2:6:3: class=0x018000 card=0x0944103c chip=0x8033104c rev=0x00 hdr=0x00
vendor = 'Texas Instruments (TI)'
device = 'PCIxx11/21 Integrated FlashMedia Controller'
class = mass storage
none2@pci0:2:6:4: class=0x080500 card=0x0944103c chip=0x8034104c rev=0x00 hdr=0x00
vendor = 'Texas Instruments (TI)'
device = '10981734 SDA Standard Compliant SD Host Controller'
class = base peripheral
none3@pci0:2:6:5: class=0x078000 card=0x0944103c chip=0x8035104c rev=0x00 hdr=0x00
vendor = 'Texas Instruments (TI)'
device = 'N/A PCI GemCore based SmartCard controller'
class = simple comms
ath0@pci0:3:0:0: class=0x020000 card=0x32021186 chip=0x0013168c rev=0x01 hdr=0x00
vendor = 'Atheros Communications Inc.'
device = 'AR5212, AR5213 802.11a/b/g Wireless Adapter'
class = network
subclass = ethernet
Copyright (c) 1992-2008 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.0-PRERELEASE #3: Sat Jan 19 16:44:43 BRST 2008
This email address is being protected from spambots. You need JavaScript enabled to view it. :/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) M processor 1.73GHz (799.68-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0x6d8 Stepping = 8
Features=0xafe9fbff
Features2=0x180
AMD Features=0x100000
real memory = 528285696 (503 MB)
avail memory = 502382592 (479 MB)
kbd1 at kbdmux0
kqemu version 0x00010300
kqemu: KQEMU installed, max_locked_mem=251532kB.
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
hptrr: HPT RocketRAID controller driver v1.1 (Jan 19 2008 16:44:17)
cpu0 on motherboard
est0: on cpu0
est: CPU supports Enhanced Speedstep, but is not recognized.
est: cpu_vendor GenuineIntel, msr 6120d2906000612
device_attach: est0 attach returned 6
p4tcc0: on cpu0
pcib0: pcibus 0 on motherboard
pci0: on pcib0
vgapci0: port 0x5000-0x5007 mem 0xd0800000-0xd087ffff,0xc0000000-0xcfffffff,0xd0880000-0xd08bffff irq 10 at device 2.0 on pci0
agp0: on vgapci0
agp0: detected 7932k stolen memory
agp0: aperture size is 256M
vgapci1: mem 0xd0900000-0xd097ffff at device 2.1 on pci0
pcib1: irq 10 at device 28.0 on pci0
pci16: on pcib1
pci0:16:0:0: invalid VPD data, remain 0xffff
bge0: mem 0xd0000000-0xd000ffff irq 10 at device 0.0 on pci16
miibus0: on bge0
brgphy0: PHY 1 on miibus0
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
bge0: Ethernet address: 00:14:c2:e7:d2:55
bge0: [ITHREAD]
pcib2: at device 28.1 on pci0
pci32: on pcib2
uhci0: port 0x2000-0x201f irq 10 at device 29.0 on pci0
uhci0: [GIANT-LOCKED]
uhci0: [ITHREAD]
usb0: on uhci0
usb0: USB revision 1.0
uhub0: on usb0
uhub0: 2 ports with 2 removable, self powered
uhci1: port 0x2020-0x203f irq 11 at device 29.1 on pci0
uhci1: [GIANT-LOCKED]
uhci1: [ITHREAD]
usb1: on uhci1
usb1: USB revision 1.0
uhub1: on usb1
uhub1: 2 ports with 2 removable, self powered
uhci2: port 0x2040-0x205f irq 11 at device 29.2 on pci0
uhci2: [GIANT-LOCKED]
uhci2: [ITHREAD]
usb2: on uhci2
usb2: USB revision 1.0
uhub2: on usb2
uhub2: 2 ports with 2 removable, self powered
ehci0: mem 0xd0980000-0xd09803ff irq 10 at device 29.7 on pci0
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb3: EHCI version 1.0
usb3: wrong number of companions (4 != 3)
usb3: companion controllers, 2 ports each: usb0 usb1 usb2
usb3: on ehci0
usb3: USB revision 2.0
uhub3: on usb3
uhub3: 8 ports with 8 removable, self powered
pcib3: at device 30.0 on pci0
pci2: on pcib3
cbb0: mem 0xd0400000-0xd0400fff irq 11 at device 6.0 on pci2
cardbus0: on cbb0
pccard0: on cbb0
cbb0: [ITHREAD]
pci2: at device 6.3 (no driver attached)
pci2: at device 6.4 (no driver attached)
pci2: at device 6.5 (no driver attached)
pcm0: port 0x2100-0x21ff,0x2200-0x223f mem 0xd0981000-0xd09811ff,0xd0982000-0xd09820ff irq 11 at device 30.2 on pci0
pcm0: [ITHREAD]
pcm0:
pci0: at device 30.3 (no driver attached)
isab0: at device 31.0 on pci0
isa0: on isab0
atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x2580-0x258f irq 10 at device 31.1 on pci0
ata0: on atapci0
ata0: [ITHREAD]
ata1: on atapci0
ata1: [ITHREAD]
pmtimer0 on isa0
orm0: at iomem 0xc0000-0xcffff pnpid ORM0000 on isa0
atkbdc0: at port 0x60,0x64 on isa0
atkbd0: irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0: irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model IntelliMouse, device ID 3
ppc0: at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: on ppc0
ppbus0: [ITHREAD]
plip0: on ppbus0
lpt0: on ppbus0
lpt0: Interrupt-driven port
ppi0: on ppbus0
ppc0: [GIANT-LOCKED]
ppc0: [ITHREAD]
sc0: at flags 0x100 on isa0
sc0: VGA
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio0: [FILTER]
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: can't assign resources (memory)
unknown: can't assign resources (port)
unknown: can't assign resources (irq)
unknown: can't assign resources (port)
unknown: can't assign resources (port)
sio4: at port 0x3e8-0x3ef,0x300-0x30f irq 3 drq 3 pnpid SMCf010 on isa0
sio4: type 16550A
sio4: [FILTER]
unknown: can't assign resources (memory)
Timecounters tick every 1.000 msec
hptrr: no controller detected.
ad0: 38154MB at ata0-master UDMA100
acd0: DVDROM at ata0-slave PIO4
GEOM_LABEL: Label for provider acd0 is iso9660/WGR614v7.
Trying to mount root from ufs:/dev/ad0s1a
WARNING: attempt to net_add_domain(bluetooth) after domainfinalize()
fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8
drm0: on vgapci0
info: [drm] AGP at 0xc0000000 256MB
info: [drm] Initialized i915 1.5.0 20060119
drm0: [ITHREAD]
ath0: mem 0xd0410000-0xd041ffff irq 11 at device 0.0 on cardbus0
ath0: [ITHREAD]
ath0: using obsoleted if_watchdog interface
ath0: Ethernet address: 00:13:46:14:1a:31
ath0: mac 7.9 phy 4.5 radio 5.6
Com o crescimento do projeto Mambo, que criou um braço GPL chamado Joomla, está cada vez mais difícil encontrar módules e outros *add-ons*.
Após uma longa busca, consegui achar um link interessante sobre isso, onde tudo está resumido para busca:
Vendo a chegada do novo release, 7.0, resolvi encarar o upgrade. Uma das novas características que chamou mais minha atenção foi o novo algoritmo escalonador, ULE, não ativo por padrão, mas através da configuração de kernel:
OPTION SCHED_ULE
Sua interação com sistemas multimídia é realmente melhor em quesitos de resposta, algo que supreendeu até em relação ao scheduler do Linux, também capaz tem preempção tempo-real para esse tipo de aplicação.
Apesar de já portado para o também embrionário FreeBSD-6.3, outras vantagens me fizeram optar pelo upgrade (um parto bem doloroso, diga-se de passagem e descrito mais adiante) como suporte melhorados a novos drivers, que fez com que minha interface FastEthernet USB, USB200M, funcionasse sem nenhuma configuração adicional, simplesmente plugando. Esse não foi o único dispositivo, também minhas interfaces wireless USB da Belkin passaram a funcionar sem o uso do ndiswrapper.
Logo de início minha felicidade foi infinita e tive a sensação de ter dado um passo na direção certa ao fazer o upgrade para a versão CURRENT (isso foi em finados de dezembro, antes do lançamento do RC1). Não durou mais que o tempo necessário para começar a descobrir várias aplicações não funcionando corretamente.
Uma das melhores aquisições em minhas viagens foi o HD externo de 160 GB da Iomega. Pequeno, leve e suportado pelo FreeBSD:
umass0: Iomega Iomega HDD USB2.0 Drive, rev 2.00/2.40, addr 2
da0 at umass-sim0 bus 0 target 0 lun 0
da0: Fixed Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: 152627MB (312581808 512 byte sectors: 255H 63S/T 19457C)
Ao formatar, decidi criar uma instalação de Ubuntu sobre o mesmo, utilizando uma partição (da0s1) como raiz, outra (da0s2) maior como home, uma para troca com usuários de windows (da0s6) e uma última com o que sobrou (da0s7), que ficou como "/mnt/ots".
Utilizando o fdisk-linux, disponível no ports, é possível criar e depois visualizar as partições.
musashi# fdisk-linux -l /dev/da0
Disk /dev/da0: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/da0s1 1 608 4883728+ 83 Linux
/dev/da0s2 609 12766 97659135 83 Linux
/dev/da0s3 12767 19457 53745457+ 5 Extended
/dev/da0s5 12767 12888 979933+ 82 Linux swap
/dev/da0s6 18242 19457 9767488+ b Win95 FAT32
/dev/da0s7 12889 18241 42997941 83 Linux
Partition table entries are not in disk order
Sendo que o tipo Ext3 (Journalling) é suportado pelo FreeBSD, nada melhor que o utilizar para guardar os dados, fazendo todo sincronismo de UFS para Ext3 e tendo um sistema backup, em Linux, disponível no HD externo.
Para fazer o mount/umount, criei um pequeno script, que segue abaixo, já que o sistema de automount não reconheçe perfeitamente os devices e respectivos pontos de montagem, fora o fato do mesmo alterar a posição de da0 para da1 ou qualquer outro da, dependendo de qual outro dispositivo estiver conectado.
#! /bin/sh
case $1 in
-m) ;;
-u) ;;
*) echo "Use: $0 [-m|-u]"
echo " -m: mount disks "
echo " -u: umount disks "
exit 1
;;
esac
echo "Finding Iomega"
### Finding device
umass=`dmesg | grep -i iomega | tail -1|awk -F":" '{print $1}'`
umass_id=`echo $umass | sed 's/umass//'`
device=`dmesg | grep "umass-sim$umass_id" | tail -1 |awk '{print $1}'`
if [ ! $umass_id ] ; then
echo "Impossible to find Iomega device"
exit 1
fi
case $1 in
-m) echo "Checking partitions"
for id in 1 2 7
do
fsck.ext3 -y /dev/${device}s${id}
done
for id in 6
do
fsck_msdosfs -y /dev/${device}s${id}
done
echo "Mounting partitions"
mount | grep "/dev/${device}s1" > /dev/null 2>&1
if [ $? -ne 0 ]; then
mount_ext2fs /dev/${device}s1 /mnt/ext2
fi
mount | grep "/dev/${device}s2" > /dev/null 2>&1
if [ $? -ne 0 ]; then
mount_ext2fs /dev/${device}s2 /mnt/ext2/home
fi
mount | grep "/dev/${device}s7" > /dev/null 2>&1
if [ $? -ne 0 ]; then
mount_ext2fs /dev/${device}s7 /mnt/ext2/mnt/ots
fi
mount | grep "/dev/${device}s6" > /dev/null 2>&1
if [ $? -ne 0 ]; then
mount_msdosfs -u 1000 -g 100 -o longnames -m 777 /dev/${device}s6 /mnt/msdos
fi
;;
-u) for dir in msdos ext2/mnt/ots ext2/home ext2
do
echo "Umounting: /mnt/$dir"
umount /mnt/$dir
done
;;
esac
Finalmente aumentei meu arsenal de brinquedos. Novo PSP Slim. Conexão WLAN e USB. Através dessa, funciona perfeitamente com BSD:
umass0: Sony "PSP" Type A, rev 2.00/1.00, addr 2
da0 at umass-sim0 bus 0 target 0 lun 0 da0:
Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers
da0: 61MB (126848 512 byte sectors: 64H 32S/T 61C)
Pode ser acessado com:
mount_msdosfs -o longnames -m 777 /dev/da0s1 /mnt/PSP
Minha diversão agora é tentar acertar a codificação de filmes para assistir no PSP, já que o mesmo tem saída pra TV (e claro que comprei o cabo :-).
A melhor dica que encontrei foi em:
Tentei fazer um resample de um vídeo para adequar ao PSP, mas falhou com o seguinte erro:
helio@musashi:torrents$ ffmpeg -i Video.mp4 -r 29 -b 768k -ar 24000 -ab 64k -s 320x240 M4V00001.MP4
FFmpeg version SVN-r10657, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --cc=cc --prefix=/usr/local --make=gmake --disable-debug --enable-memalign-hack --enable-shared --enable-pp
--extra-cflags=-I/usr/local/include/vorbis -msse -I/usr/local/include --extra-ldflags=-L/usr/local/lib -la52 --extra-libs=-pthread
--enable-gpl --enable-pthreads --mandir=/usr/local/man --enable-liba52 --enable-liba52bin --enable-libfaad --enable-libfaadbin
--enable-libgsm --enable-libmp3lame --enable-libogg --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid
libavutil version: 49.5.0
libavcodec version: 51.44.0
libavformat version: 51.14.0
built on Nov 17 2007 21:27:40, gcc: 3.4.6 [FreeBSD] 20060305
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Video.mp4': Duration: 01:38:49.8, start: 0.000000, bitrate: 775 kb/s
Stream #0.0(eng): Video: h264, yuv420p, 320x176, 25.00 fps(r) Stream #0.1(eng): Audio: mpeg4aac, 48000 Hz, stereo
File 'M4V00001.MP4' already exists. Overwrite ? [y/N] y
Output #0, mp4, to 'M4V00001.MP4': Stream #0.0(eng): Video: mpeg4, yuv420p, 320x240, q=2-31, 768 kb/s, 29.00 fps(c)
Stream #0.1(eng): Audio: 0x0000, 24000 Hz, stereo, 64 kb/s
Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1
Compiler did not align stack variables. Libavcodec has been miscompiled and may be very slow or crash. This is not a bug in libavcodec,
but in the compiler. You may try recompiling using gcc >= 4.2.
Do not report crashes to FFmpeg developers.
Unsupported codec for output stream #0.1
Consegui arrumar refazendo a instalação do ffmpeg via ports:
root@musashi# cd /usr/ports/multimedia/ffmpeg root@musashi# env CC=gcc4.2 make build deinstall install clean
Com isso o filme foi resampleado (existe isso?), mas não foi aceito no PSP... brinquedo novo é assim :-)
Page 29 of 33