вторник, 28 февраля 2012 г.

RERemix и джойстик (геймпад)

Наткнулся на статью Подключаем и используем геймпад в Fedora Linux
Т.к. система у меня 64 битная, то пришлось качать тарбол и компилировать.
Сначала устанавливаются пакеты необходимые для компиляции
yum install gcc-c++ gtk2-devel libXtst-devel SDL-devel glib2-devel
Затем качаем тарбол  http://sourceforge.net/projects/rejoystick/files/rejoystick/rejoystick-0.8.1/rejoystick-0.8.1.tar.gz/download

Разархивируем и заходим в папку с исходниками, я это делаю при помощи mc, а затем компилируем

./configure && make

и устанавливаем

su -c "make install"

Для начала работы нужно запустить программу с графической оболочкой

rejoystick

После настройки запускаем непосредственно эмуляцию клавиш джойстиком

rejoystick -d

Для остановки используется команда

 killall -9 rejoystick

понедельник, 20 февраля 2012 г.

WD Green Caviar утилита для диагностики 2

В догонку к предыдущему посту 

 DLGDIAG.txt

                             DLGDIAG

PROGRAM DESCRIPTION:

    This MODULE of the Data Lifeguard Tools program searches for and
    verifies the status of specific Western Digital drives. By accessing
    the Data Lifeguard information stored on the hard drive, the program
    is able to quickly and efficiently verify the status of the drive.
    If any errors are logged or found, it provides an option to return the
    drive to defect-free status through an extended test or repair option.

    DLGDIAG offers several options for verifying the defect-free status of
    your hard drive.

    QUICK TEST: The Quick Test is designed to intelligently gather and verify
    all of the Data Lifeguard information contained on the drive.  The Quick
    Test can determine with a high level of confidence that a drive is
    defect-free in a short amount of time.  For maximum confidence, the
    Extended Test is recommended.  The Quick Test option may not be available
    on earlier hard drives.

    EXTENDED TEST: For most computers the DLGDIAG Extended Test takes 5-20
    minutes to test one drive. Larger drives take longer to test. The
    performance of the computer also affects the test time.


TO RUN THE PROGRAM:

    BACK UP DATA:
    Before running DLGDIAG, it is recommended that users back up all data
    for all hard drives.  This utility may write to the drive during the
    re-certification process.  As with all utilities that write to a drive,
    it is recommended that you back up your data before proceeding.

    STORE THE PROGRAM ON FLOPPY DRIVE:
    The program must be run from a floppy drive, so if downloaded, copy all
    files included in the zip to a formatted bootable floppy diskette in A:.
    All files must be included for the program to function properly. Running
    this program from the target hard drive while using certain operating
    systems can result in data loss and an inaccurate scan of the target
    drive.

    START THE PROGRAM: To start the program, type DLGDIAG at the
    A:\ DOS prompt.

    READ AND APPROVE LICENSE AGREEMENT:
    In order for the DLGDIAG program to run, the License Agreement must
    be agreed to by indicating "YES".


TO TEST EACH DRIVE:

    Pick the 'Select Drive' option to see a list of all drives
    installed and the current status of each drive.

    For each drive that shows a status of 'DRIVE NOT TESTED', select
    the drive by using the up/down arrows until the desired drive
    is highlighted and hit ENTER, then return to the main menu to test
    the drive.

    Once the target drive is selected,  choose either the Quick or
    Extended Test Options.  The Quick Test option may not be available
    on earlier drives. If it is not available, then the program will
    give the user the option to run the Extended Test.

    Depending on the option selected, the 'Test' will take between 90
    seconds and 20 minutes to complete (depending on the size of the drive
    and the speed of the computer).

    At the end of the test a status is displayed. Also, the status for
    all drives is always available by choosing the 'Select Drive' option
    from the main menu.

    If errors are detected during a 'Test' option, the user will be
    given the option to attempt to repair the errors.

    Use the 'Select Drive' and 'Quick Test' and 'Extended Test' options
    to select, test, and repair each drive until all drives have been
    tested.

    Pick QUIT from the main menu to quit the program. At this point
    a message will inform you that the system should be reset to
    reinitialize the BIOS and hard drive(s). Hit CTRL-ALT-DELETE or
    turn the power off to restart the system.

    When rebooting, remove the floppy diskette so the system boots
    to C: instead of A:.


TO CONTACT WD:

    In some cases the user may be requested to contact Western
    Digital Technical Support. You may contact Western Digital
    Technical Support at support.wdc.com or at (800) 275-4932 in the U.S.,
    or (31) 20.446.7651 in Europe, or consult your drive manual for
    further information. Alternately, you may contact the OEM or its
    warranty service provider who can support your needs.


MAIN MENU OPTIONS:

    Select Drive           select drive and view status for all drives
    Quick Test             90 second 'intelligent' test of the selected drive
    Extended Test          5-20 minute scan of selected drive
    Write Zeros To Drive   write zeros to the drive
    View Test Results      display results for last drive tested
    Print Test Results     print results for last drive tested
    Log File Open/Close    store results for all drives tested - DLGDIAG.LOG
    Enter & Print RMA Info enter and print RMA when returning a drive to WD
    Help                   display the DLGDIAG help file - DLGDIAG.TXT
    Quit                   quit DLGDIAG


COMMAND LINE SWITCHES:

    -A       Disable error code for SMART failures
    -B       Check SMART status without menus
    -C       Enable output to comma file
    -Dx      Select drive x only, where x is 0-15 or ? to show drive info
    -E       Run extended test without menus - with drive repair
    -FWRITE  Write zeros to the first and last million sectors
    -G       Show test history on the SMART log area
    -H       Enable appending of log to history log file
    -L       Disable output to log file
    -Ox      Specify log file location, where x is the full path
    -Px      Access drives at baseport x (hex address) only
    -Q       Run Quick Test without menus
    -R       Run performance test without menus
    -S       Skip rebooting after a run of the program
    -V       Run extended test without menus - without drive repair
    -WRITE   Write zeros to the entire drive


ERROR/STATUS CODES:

DESCRIPTION                  CODE

COMPLETED WITHOUT ERRORS      0
ABORTED BY HOST               1
INTERRUPTED BY DRIVE RESET    2
INCOMPLETE DUE TO ERROR       3
UNKNOWN ELEMENT FAILURE       4
ELECTRICAL ELEMENT FAILURE    5
SERVO/SEEK ELEMENT FAILURE    6
READ ELEMENT FAILURE          7
HANDLING FAILURE              8
UNKNOWN TEST STATUS           9
UNKNOWN TEST STATUS           10
UNKNOWN TEST STATUS           11
UNKNOWN TEST STATUS           12
UNKNOWN TEST STATUS           13
UNKNOWN TEST STATUS           14
TEST IN PROGRESS              15

ERRORS FOUND                  100
UNKNOWN ERROR                 101
SEEK TIMEOUT                  102
WRITE FAULT ERROR             103
DRIVE NOT READY               104
BUSY GLITCH                   105
TRACK 0 ERROR                 106
CHECK SUM ERROR               107
SEEK NOT COMPLETE             108
DRQ WAS SET                   109
DRQ NOT EXPECTED              110
DIAG COMMAND ERROR            111
IRQ TIMEOUT                   112
DRIVE TABLE ERROR             113
TRANSFER RATE ERROR           114
ICRC ERROR                    115
IDNF ERROR                    116
UNCORRECTABLE ECC ERROR       117
DAM ERROR                     118
NO MULTI                      119
NO DRIVE FOUND                120
SERVO ERROR                   121
UNKNOWN ERROR                 122
UNKNOWN ERROR                 123
CORRECTED DATA                124
BAD TRACK                     125
UNKNOWN ERROR                 126
UNKNOWN ERROR                 127
BUFFER MISCOMPARE             128
G-LIST ERROR                  129
INVALID SERIAL                130
SERIAL RETRY                  131

COMMAND ERROR                 132
ILLEGAL ID                    133
BUSY TIMEOUT                  134
DRQ TIMEOUT                   135
BAD SECTOR                    136
RELOCATED SECTOR              137
STILL BUSY TIMEOUT            138
DRQ NOT EXPECTED              139
DRQ TIMEOUT ECC               140
UNKNOWN ERROR                 141
TK-TK SEEK ERROR              142
RANDOM SEEK ERROR             143
THIRD STROKE ERROR            144
FULL STROKE ERROR             145
SEEK OVERHEAD ERROR           146
BAD ID PARAMETERS             147

NOT SELECTED                  148
MASTER SLAVE ERROR            149
UNKNOWN ERROR                 150
PARK ERROR                    151
WRITE PROTECT ERROR           152
MEDIA ERROR                   153
MEDIA CHANGE ERROR            154
MEDIA CHANGE REQ ERROR        155
NO MEDIA ERROR                156
SET MAX ERROR                 157
Q DMA SERVICE ERROR           158
SMART ERROR                   159
UNKNOWN COMMAND               160
RESET SIGNATURE               161
READY EXPECTED                162
UNKNOWN ERROR                 163

DRIVE NOT TESTED              200
NON-WD DRIVE                  201
DRIVE NOT SUPPORTED           202
WRITE LOG ERROR               203
MISSING LOG FILE              204
ABORTED BY USER               205
MEMORY ALLOCATION ERROR       206
CRITICAL RESOURCE ERROR       207
FATAL ERROR                   208
SELF TEST FAILED TO RUN       209
SELF TEST INCOMPLETE          210
2-9 UNCORR ECC ERRORS         211
10+ UNCORR ECC ERRORS         212
2-9 DAM ERRORS                213
10+ DAM ERRORS                214
2-9 IDNF ERRORS               215
10+ IDNF ERRORS               216
2-9 SERVO ERRORS              217
10+ SERVO ERRORS              218
DRIVE CABLE ERROR             219
DRIVE IS LOCKED               220
TEST NOT SUPPORTED            221
DRIVE FAILED THE TEST         222
ERRORS REPAIRED               223
ERRORS NOT REPAIRED           224
TOO MANY ERRORS FOUND         225
SECTOR RELOCATION ERROR       226
SMART NOT SUPPORTED           227


TEST RECORD HISTORY:

The test status and time are stored in SMART log area and can be retrieved
by using -g switch.

A sample test record appears:

   08/22/2002 11:35:00,DLGDIAG 5.00, TEST 7, STATUS/ERROR CODE = 00000

   The Test # indicates one of the test options which are:

      1 - Quick Test
      2 - Extended Test
      3 - Write Zero Test
      4 - Data Transfer Test
      5 - SMART Status Test
      6 - Status Register Error
      7 - Command Error

   The Status # indicates one of the error or status code returned by
   DLGDIAG.

   If test can't write status to log file, the 5th digit of the status/error code
   will be set to 1.

WD Green Caviar утилита для диагностики

В догонку к предыдущему посту об Western Digital Caviar Green

Взято от сюда:
http://support.wdc.com/product/download.asp?groupid=609&sid=2&lang=en

Description
Data LifeGuard Diagnostics is designed to test the physical condition of your hard drive. This utility is designed for drivers larger than 8.4 GB with model numbers starting with WDxxx. This program is designed to work only in a DOS booted environment.
Supported Operating Systems

  • DOS
Instructions

  1. Download the DLGDiagv519.zip.
  2. Extract the DLGDiagv519.exe file and copy to a DOS bootable diskette.
  3. Boot from this diskette. Make sure that your boot order in your Bios is set to boot from the floppy drive first.
  4. At DOS prompt type DLGDiagv519.exe to run the program.
  5. You will see the following options:
    • SELECT DRIVE - Always choose this option first, as it determines which drive you will be working on.
    • QUICK TEST - This option tests your drive quickly for any major physical problems. (Please note: Although this option is safe and does not alter the data on your hard drive, Western Digital recommends that you have a current backup of your data).
    • EXTENDED TEST - This option checks your drive thoroughly and it can repair any correctable errors. (Please note: Although this option is safe and does not alter the data on your hard drive, some data loss may occur, depending on the errors found and the errors corrected. Western Digital recommends that you have a current backup of your data).
    • WRITE ZEROS TO DRIVE - The Write Zeros option, wipes all data off your drive. This option used when your data is no longer usable or recoverable. If you no longer need any data from your drive and would like to start over, run this option to set your drive to an as new condition. NOTE: Please make sure that you have selected the correct drive to perform this function on as once ran, no data will be recoverable.
    • VIEW TEST RESULTS - You can see the results of the test you just performed
    • PRINT TEST RESULTS - Test results can be printed with this option. USB printers are not supported
    • LOG FILE OPEN/CLOSE - You can access the log file which is generated automatically
    • ENTER AND PRINT RMA INFORMATION - Information pertaining to each drive tested can be customized and printed with this option.
    • HELP - Brief descriptions of each option in addition to explanations of error codes are available in this option.
    • QUIT - Reboot your system once you have completed the selected tasks
  6. Select the task you wish to perform.
Related Resources


суббота, 18 февраля 2012 г.

Имитация нажатия клавиши в RERemix

В предыдущем посте об имитации нажатия клавиш в Федоре пакет xdotool устанавливался из стандартного репозитория.
В RERemix найти xdotool в репозиториях не удалось, но можно скачать его и библиотеку к нему из репозитория Fedora 16
xdotool-2.20101012.3049-2.fc15.x86_64.rpm
libxdo-2.20101012.3049-2.fc15.x86_64.rpm
и установить это ручками.

ATI HD 4200 и RERemix 6.2 Beta

Имею встроенную в материнскую плату видеокарточку ATI HD 4200 и дистрибутив RERemix 6.2 Beta x86_64 (отдельное спасибо Аркадию Шейну Tigro за работу над ним).
RERemix 6.2 Beta из коробки адекватно заработала с моей карточкой, в отличие от RERemix 6.1 Alfa
Зачем-то захотелось поставить проприетарные драйвера на видеокарточку.

yum install xorg-x11-drv-catalyst
ни к чему хорошему не привёл и я его удалил (может у меня руки кривые, а может и не в них дело)

yum install fglrx-x11-drv fglrx-x11-drv-32bit
уже выдал рабочий результат

glxgears
14174 frames in 5.0 seconds = 2832.941 FPS
15909 frames in 5.0 seconds = 3181.732 FPS
16073 frames in 5.0 seconds = 3214.504 FPS
16513 frames in 5.0 seconds = 3302.439 FPS
16065 frames in 5.0 seconds = 3212.536 FPS
16498 frames in 5.0 seconds = 3299.523 FPS

На всякий пожарный: утилиты glxgears и glxinfo находятся в пакете glx-utils
Пакет  xorg-x11-drv-catalyst находится в репозитории PUIAS
Пакет  fglrx-x11-drv из репозитория ELRepo
Оба репозитория из коробки.
Система у меня 64 битная.

RERemix 6.2 Beta

Намедни вышел RERemix Linux Desktop 6.2 Beta
Очень понравился.
Кул кул кул )))
Практически я уже готов перейти на него с RFRemix 16 на домашнем компьютере. Пока стоит второй системой.
Респект товарищу Tigro