Другое решение, использующее awk
и bash
:
paste -d, <(awk -v RS='\n\n' 'NR%2' file) <(awk -v RS='\n\n' '!(NR%2)' file)
Это учитывает только пустые строки в качестве разделителей, непустые строки могут быть чем угодно.
Tengo un chipset Intel 945 y Linux Mint 18.3 Mate 64. En "pantallas" tengo una pantalla VGA1 desconocida y no puedo establecer una resolución superior a 1024x748.
En el directorio "/usr/share/X11/xorg.conf.d" creé el archivo "40 -monitor.conf" (si ya lo tiene, solo necesita editar el archivo):
Section "Monitor"
Identifier "Monitor0"
Modeline "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "AccelMethod" "UXA"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Intel Graphics"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
Modes "1600x900"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
Modes "1600x900"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
Modes "1600x900"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1600x900"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1600x900"
EndSubSection
EndSection
En mi caso utilicé información en la sección "Dispositivo" del archivo "20 -intel.conf". Creo que si tienes Geforce debería haber un archivo como "xx -nvidia.conf".